ContentInterface_SetMetadata
ContentInterface_SetMetadata <content interface handle> <metadata name> <metadata value>
ContentInterface
Set a metadata value of content
|
content interface handle
Content interface handle
metadata name
Metadata name to which you want to set a new value
metadata value
Metadata value to be set
set gdm [DMDirector_OpenWorkspace $director $ws $repoh 0]
set qryhandle [$gdm GetQuery]
set stringtosearch "MS6000"
set clist [ContentInterfaceList]
set query [$gdm ExecQuery $stringtosearch $clist]
set cilistsize [ContentInterfaceList_size $clist]
set clist_at [ContentInterfaceList_at $clist 0]
set filtype [ContentInterface_GetMetadata $clist_at filetype]
set v [hwVariant]
set val “New_Metadata_value”
$v SetString "$val"
Set status [ContentInterface_SetMetadata [ContentInterfaceList_at $clist 1] filetype $v]
Puts “Status à[hwLMStatus_GetMessage $status]”