IBMCM_CreateItem
Creates an IBM® Content Manager document that is based on a specified item type.
Member of namespace
ibmcmSyntax
bool IBMCM_CreateItem(string itemtype)
Parameters
itemtype: Creates an IBM Content Manager document that is based on the item type.
Parameters
itemtype: a string value of a valid IBM Content Manager Item Type, for example NOINDEX. An `IBM Content Manager Item Type is equivalent to a Document Class (Index Class).Smart parameters are supported, such as @BATCHID, @ID, @STATUS, @TYPE, @VALUE, @JOBID, @JOBNAME, @OPERATOR, @STATION, @TASKID, and @TASKNAME. For more information, refer to the smart parameter documentation.
Returns
True If the document is successfully created. Otherwise, False.Level
Document or Page level.Details
Creates an IBM Content Manager based on the item type. This action must be called before the document and page upload actions.- Example:
IBMCM_CreateItem("NOINDEX") IBMCM_SetMimeType("image/tiff") IBMCM_UploadDC)_DOC()This example creates an IBM Content Manager document that is based on the NOINDEX item type. It sets the mime type of the uploaded document, and then runs the upload action.
IBMCM_CreateItem(@P.name)This example creates an IBM Content Manager document that is based on the value that is contained inside the Smart Parameter @P.name at the Page level.
Typically, there is one item for each processed document that is represented by a Document object of the Document Hierarchy, or for a processed page that is represented by a Page object.