DB2 ACCESS VIEWS
2. Select Create - Design - DB2 Access View.
3. Specify the fields (columns) to use in the DAV. Choose one of these options:
This is the matching field name for the DB2 column in the DAV, so it must be the actual name of a field that appears in the note (otherwise no matching field would be found and the column in the DB2 view would be blank)
Note If you used the Choose Field method of specifying the fields for the DAV, you will be able to edit the field names in the properties, but if you change the field name so that it no longer matches a field name in the note, the corresponding column in the DB2 will be blank.
Note Formula, rich text, and rich text light Notes data types are not supported for use in DAVs.
Note If you have an integer defined in the DAV, and an insert from DB2 supplies a real number (with a decimal), the insert will succeed and the decimal value will be truncated.
Note: this option is enabled only for multi-value fields.
This delimiter is the one that will be used to separate multiple values in the DB2 column and the delimiter that will be used to parse DB2 INSERT or UPDATES into separate values. It is not related to the delimiter specified in the form design that is used by the Notes client.
The default is a semicolon.
This is only required for columns mapped to the DB2 Varchar data type (all other types are fixed length). The default for varchar is 100.
Note This setting only applies to columns mapped to Date/Time fields in the document. Special fields (e.g. #CREATED) are always written to DB2 in GMT.
8. Save the view.
9. (Optional - recommended) Click Validate. Validating the DAV verifies that the definition meets the minimum requirements to build a valid DB2 view and gives you a quick way to check the validity of the Access View definition while you are still in the DAV designer.
10. Close the view.
11. In the DAV work pane, click Create/Update in DB2.
12. Click Populate in DB2. This populates the view with the field data.
Notes:
Populating a DAV against a large data set can be time consuming and contribute to server load. If you have created a DAV for a large database, consider populating the view during off hours.
Populating the view is a one-time event. After the view has been populated, it is kept in sync with normal Note updates and DB2 updates.
New with Release 8, a wide range of metadata about the Notes database previously only accessible via Notes formula language are available to the DAV. Metadata about the DAV itself is also available.
Some of the special fields perform additional modifications to the underlying notes.
SELECT #NOTEID in the Query View's SQL formula to allow document to be opened by double clicking the view entry.
Specify the #OID special field in the DAV definition and SELECT #OID in the Query View's SQL formula to enable the following capabilities.
#RESPINFO in the DAV formula sets Parent and response note information.
Specify the #PUBLICACCESS special field in the DAV definition and SELECT #PUBLICACCESS in the Query View's SQL formula to enable Notes public access behavior in query views.
Timestamps are normalized to GMT.
Version compatibility notes:
The following icons show the status of the DAV you are creating:
See Also