17.11.2014 Views

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

corresponds to a value in the<br />

section_set_key column for a row in the<br />

ELN_collections table.<br />

• %%session_key%% – The unique<br />

identifier for the database session in which<br />

the record set is retrieved. This datum<br />

corresponds to a value in the primary_key<br />

column for a row in the ELN_sessions<br />

table.<br />

• %% logged_in_user_key%% – The<br />

unique identifier for the person record for<br />

the user that initiated the database session in<br />

which the record set is retrieved. This datum<br />

corresponds to a value in the primary_key<br />

column for a row in the ELN_people table.<br />

• %%home_collection_key%% – The<br />

unique identifier for the home collection of<br />

the user that initiated the database session in<br />

which the record set is retrieved. This datum<br />

corresponds to a value in the<br />

section_set_key column for a row in the<br />

ELN_collections table.<br />

• %%access_view%% – The name of the<br />

table used to validate security privileges for<br />

the logged in user.<br />

In addition, a SQL string may contain the name<br />

of a property that appears in a property field in<br />

the same section as the DBTable section cell.<br />

This property field is identified using the<br />

property field name property of the SQL<br />

section cell, below. For example, a property<br />

could appear in the WHERE clause of the SQL<br />

statement to determine which records in the<br />

database table appear<br />

• Property List Field – An optional name of<br />

a property list field that contains properties<br />

which are used to parameterize the SQL<br />

statement, above.<br />

8. Click OK.<br />

Several examples are given below. Note that the<br />

syntax of the query may vary depending upon the<br />

type of database you are querying.<br />

Example 1 Database Lookup Configuration<br />

In this example, all of the values for suppliername<br />

are pulled in from the external database table<br />

Suppliers. The values will appear in a drop-down<br />

list in the property cell.<br />

• suppliername – value to be displayed in the<br />

table<br />

• Suppliers – name of external database table<br />

Example 2 – Database Lookup Configuration<br />

In this example, the value suppliername is pulled<br />

from the external database table Suppliers. The<br />

suppliername displayed in the table field<br />

corresponds to the value that a user has entered into<br />

a property list that exists elsewhere in the<br />

E-Notebook section. A user enters SupplierID into<br />

the Supplier ID property, which exists in a Property<br />

List named ID Number.<br />

• suppliername – value to be displayed in the<br />

table.<br />

• Suppliers – name of external database table.<br />

E-Notebook<br />

<strong>ChemOffice</strong> 2005/E-Notebook Managing Fields • 531<br />

Managing Data Fields

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!