|
We have recently added/modified some Document/Attachment data element related function that can be used in Calculate Actions. They are summarized below. Note some parameters take the *names* of the data elements rather than the data elements themselves (delimited by quotes vs percent signs). All functions will return a numeric data element. Zero for failure, non-zero for success.
ClearDocument(dataElementName) - Removes an attachment.
Example: ClearDocument("resume")
SetInstanceDocument(remoteInstId, localDataElementName, remoteDataElementName) - Sets a Document data element in a different process instance using one in the current process instance.
Example: SetInstanceDocument( %po_ciid%, "pr_document", "po_form")
GetInstanceDocument(remoteInstId, localDataElementName, remoteDataElementName) - Copies a document data element from another process instance into the current process instance
Example: GetInstanceDocument( %orig_ciid%, "my_document", "old_document")
|