HyperWorks Desktop

DocumentMetadata_getName

DocumentMetadata_getName

Previous topic Next topic No expanding text in this topic  

DocumentMetadata_getName

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

NAME


DocumentMetadata_getName  

 

SYNTAX


DocumentMetadata_getName <metadata handle>

 

TYPE/CLASS


DocumentMetadata

 

DESCRIPTION


To get the name 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