HyperWorks Desktop

DocumentMetadata_getValue

DocumentMetadata_getValue

Previous topic Next topic No expanding text in this topic  

DocumentMetadata_getValue

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


DocumentMetadata_getValue

 

SYNTAX


DocumentMetadata_getValue <metadata handle>

 

TYPE/CLASS


DocumentMetadata

 

DESCRIPTION


To get the value of metadata for a document being parsed

metadata handle

àMetadata handle

 

EXAMPLES


 set allmd [ParsedDocument_getAllMetadata $doc];

 set size [$allmd size];

 for {set idx 0} {$idx < $size} {incr idx} {

   set md [$allmd at $idx];

   set mdname [DocumentMetadata_getName $md]

   set mdval [DocumentMetadata_getValue $md]

   set st [ContentInterface_SetMetadata $contentInterface $mdname $mdval];

   if {[$st GetStatus]} {

::hwe::tkLM::PopdownWorkingWindow;

           OnCancelContentDialog

           delete_ParsedDocument $doc

           puts "failed to set metadata: '$mdname'"

           return 1;  

   }

}

 

ERRORS


 

SEE ALSO


ParsedDocument_getAllMetadata