Script functions reference > Script functions in alphabetical order > S > SetPPMetadataNum

SetPPMetadataNum
Syntax
SetPPMetadataNum(doc_handle, metadataName, value);
Description
Sets metadata of numeric type for the document specified in the doc_handle parameter returned by either the GetFirstPPDoc() or the GetNextPPDoc() function.
Note:
If the metadata is not used with enveloping or sorting, the metadata must be declared with the DeclareMetadata() function at Before Job level.
Returns
num<>0
Example
$doc_id = GetFirstPPDoc();
while(num($doc_id) > 0)
{
   $ret = SetPPMetaDataNum ($doc_id, "invoice_no", 112233);
   $doc_id = GetNextPPDoc($doc_id);
}
OpenText StreamServe 5.6 Updated: 2013-03-01