ContentInterface_SetMetadata

Set a metadata value of content.

Syntax

ContentInterface_SetMetadata <content interface handle> <metadata name> <metadata value>

Type/Class

ContentInterface

Description

Set a metadata value of content. The metadata value needs to be a hwString. Use the SetString command.
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

Examples

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]”