2
–
– Type – Numeric or String. Must be the same type as defined for the metadata in the document repository.
– Sort order – Ascending or Descending.
5 Click OK.The DeclareMetadata script function specifies a metadata name to be used for sorting or bundling of documents. The metadata name can then be associated with a variable by for example using the following functions:
• SetCurrMetadata – sets the metadata value on the current document.
• SetSegMetadata – sets the metadata value on a specified document.
Example 1 $ret = DeclareMetadata(“zip”, “N”; “A”)
Example 2 $doc_id = getFirstSegDoc();while (num($doc_id) > 0){$zip = “1234”$setSegMetaData($doc_id, “zip”, $zip);$doc_id = GetNextSegDoc($doc_id);}
OpenText StreamServe 5.6 | Updated: 2013-03-01 |