IBMCM_SetAttributeValue

Sets the attribute value on an IBM® Content Manager document or folder.

Member of namespace

ibmcm

Syntax

bool IBMCM_SetAttributeValue (string attributesvalues)

Parameters

String attributesvalues: Sets the attribute value on an IBM Content Manager document or folder.

Parameters

attributesvalues is a string value of two comma separated variables:

Name: The name of the variable to set.

Value: The value of the variable to set.

A 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. Refer to the smart parameter documentation for more information and usage.

Returns

True if the document is successfully created. Otherwise, False.

Level

All levels.

Details

Sets the attribute value on a IBM Content Manager document or folder. The specified attribute must already be defined on the IBM Content Manager server. The attribute can be applied to a document or a folder. This action now accepts null attribute values, to reset the attribute to a null value, or to remove a value from an attribute. This action must follow a previous action that created the new folder or that identifies a document. This action can be called multiple times to set multiple processes.
Example:
IBMCM_CreateFolder("MyItemType")
IBMCM_SetAttributeValue("Name,@BATCHID") 

This example creates an IBM Content Manager folder and sets the Name property of the folder to the ID of the current batch.

IBMCM_CreateItem("@B.name")
IBMCM_SetAttributeValue("Author,@D.TheAuthor")
IBMCM_SetAttributeValue("Date,@DATE")

When running on the document level, this example creates a new document by using the batch level value that is stored in the DCO variable Name and sets the Author attribute to the value that is stored in the DCO document level variable named TheAuthor. Then it stores the current date in the Date property.

IBMCM_SearchItem("employeeID","3F1234D")
IBMCM_SetAttributeValue("FirstName,Thomas")

This example searches the IBM Content Manager repository for an existing IBM Content Manager document with the EmployeeID that is 3F1234D. If the existing IBM Content Manager document is found, then its attribute FirstName is set to Thomas.