IDocument Methods |
The IDocument type exposes the following members.
Name | Description | |
---|---|---|
![]() | CancelChanges | Undo any changes made since the object was loaded. |
![]() | ChangeIdentity | Loads a different record into the object. Causes changes to the existing object to be saved first. |
![]() | Clone | Clone this document |
![]() | Delete | Delete the object from the database. May throw an error if you are not allowed to delete the object. |
![]() | GenerateDocumentFile | GenerateDocumentFile - copies the template and substitutes the given contact/person/project values. Returns false on failure. |
![]() | GetFileCopy | make a copy of the file and return the path |
![]() | IsSuggestedItem | Is this document used as a suggested document? |
![]() | ReplaceFile | ReplaceFile - archive the file provided and update record if necessary, or replace contents of existing file with same name, or |
![]() | Save | Persist the object to the database. May throw an error if you are not allowed to save changes to the object. |
![]() | SetDefaults | Populate the object with default values, such as setting the owner to the current user. |
![]() | SuggestedItemId | Get the suggested item id |