Click or drag to resize

IDocument Methods

The IDocument type exposes the following members.

Methods
  NameDescription
Public methodCancelChanges
Undo any changes made since the object was loaded.
Public methodChangeIdentity
Loads a different record into the object. Causes changes to the existing object to be saved first.
Public methodClone
Clone this document
Public methodDelete
Delete the object from the database. May throw an error if you are not allowed to delete the object.
Public methodGenerateDocumentFile
GenerateDocumentFile - copies the template and substitutes the given contact/person/project values. Returns false on failure.
Public methodGetFileCopy
make a copy of the file and return the path
Public methodIsSuggestedItem
Is this document used as a suggested document?
Public methodReplaceFile
ReplaceFile - archive the file provided and update record if necessary, or replace contents of existing file with same name, or
Public methodSave
Persist the object to the database. May throw an error if you are not allowed to save changes to the object.
Public methodSetDefaults
Populate the object with default values, such as setting the owner to the current user.
Public methodSuggestedItemId
Get the suggested item id
Top
See Also