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

SavePPMetadata
Syntax
SavePPMetadata(doc_handle, metadata_name);
A string specifying the name of the metadata associated with the document specified in the doc_handle parameter.
Description
Saves the metadata for the document specified in the doc_handle parameter returned by either the GetFirstPPDoc() or the GetNextPPDoc() function.
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 = SetSegMetadata($doc_id, "city", "Prague");
   $ret = SavePPMetadata($doc_id, "city");
   $doc_id = GetNextPPDoc($doc_id);
}
OpenText StreamServe 5.6 Updated: 2013-03-01