UpdateDocument method: IntBroker class
Syntax
UpdateDocument(&doc, update_type)
Description
Use this method to update the database based on the data in the specified Document object. The method can be used in a Mobile Application Platform (MAP) event only.
Important:
To use this method, the document must be defined as a physical relational document.
Parameters
| Parameter | Description |
|---|---|
|
&doc |
Specifies the document as a Document object. |
|
update_type |
Specifies the type of update to perform as an Integer. The constant values are: |
| Constant Value | Description |
|---|---|
|
%Document_Update |
Update the database by adding the keys and data from the specified document. |
|
%Document_Replace |
Update the database by first deleting data associated with any keys specified in the document, and then replacing them with the keys and data from the specified document. |
|
%Document_Delete |
Update the database by deleting data associated with any keys from the specified document. |
Returns
A Boolean value: True if the update occurred successfully, False otherwise.