Read and Process Index Data |
Scroll |
The TheDocument class provides access to its TheIndexData member through the IndexData property. This TheIndexData object contains category-dependent meta-data for the object (e.g. document number, title, category information, version, author, invoice number, due date etc.). This data is stored as a map of {string fieldName, object value} pairs. It is possible to get and set values by their field name and to iterate through field names, values or both. The Step By Step guide and the examples below illustrate how to read and iterate index data. Please see "Edit and Save Index Data" to learn how to modify and save index data values.
1 |
Connect to the Thereforeâ„¢ server (see "Server - Connect and Disconnect" for Details) |
2 |
Declare and initialize a new TheDocument instance. |
3 |
Retrieve the document from the server. |
4 |
Get the document's IndexData. |
5 |
Iterate and print the index data. 5A. Iterate {string fieldname, object value} pairs. or 5B. Iterate field names only. or 5C. Iterate values only. |
Requirements and Assumptions: Document number 42 exists in your Thereforeâ„¢ system. If these assumptions do not apply to your system or configuration please replace them with appropriate values when copying the code samples below. |
Using the Default Thereforeâ„¢ Inbox If the empty string ("") is passed as the second (strInbox) parameter of the Retrieve method, the default Thereforeâ„¢ inbox will be used for retrieval. |