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.

Administrator<br />

3. Right-click the Table Field in the list of Fields,<br />

and select Field Properties from the menu<br />

that appears.<br />

The Field Properties dialog appears.<br />

4. Click the Property for whose value(s) you wish<br />

to pull from an against an external database.<br />

5. Click the drop-down arrow for Enumerator,<br />

and select Database Lookup.<br />

6. Click the Properties button.<br />

The Database Lookup Properties dialog<br />

appears.<br />

7. Enter the following information:<br />

• Connection String – A string used to<br />

define a connection to a database. If this<br />

string is 0-length (Null in the database), then<br />

it is assumed to be a connection to the<br />

primary schema of the E-Notebook<br />

database. If the string is a path to an .mdb<br />

file, then a connection is made to that file<br />

using the Microsoft Access OLEDB<br />

provider. Otherwise, the string is treated as<br />

a valid string that can be assigned to an<br />

ADODB.Connection object’s<br />

ConnectionString property.<br />

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

specify the logon identification required to<br />

connect to the specified database. If the<br />

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

String is 0-length, then the owner of the<br />

primary schema of the E-Notebook<br />

database is used as the username.<br />

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

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

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

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

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

530• Managing Fields <strong>CambridgeSoft</strong><br />

Managing Data Fields

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

Saved successfully!

Ooh no, something went wrong!