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.

• Password – An optional string used to<br />

identify the logon ID required to connect to<br />

the specified database. If the UserName is<br />

0-length and the Connection String is<br />

0-length, then the password is ignored.<br />

• SQL String – A required string that starts<br />

with the text “SELECT “. This string is used<br />

to specify the record set that appears within<br />

the E-Notebook section. The SQL String<br />

can have the following special phrases that<br />

are dynamically replaced based on the<br />

location of the section cell.<br />

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

identifier for the section containing the<br />

section cell in which the record set appears.<br />

This datum corresponds to a value in the<br />

primary_key column for a row in the<br />

ELN_sections table.<br />

• %%field_key%% – The unique identifier<br />

for the field that describes the section cell in<br />

which the record set appears. This datums<br />

corresponds to a value in the primary_key<br />

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

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

identifier for the collection that contains the<br />

section containing the section cell in which<br />

the record set appears. This datum<br />

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<br />

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

field in the same section as the DBTable<br />

section cell. This property field is identified<br />

using the property field name property of the<br />

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

property could appear in the WHERE clause<br />

of the SQL statement to determine which<br />

records in the 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 />

3. 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 />

E-Notebook<br />

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

Managing Data Fields

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

Saved successfully!

Ooh no, something went wrong!