ContentInterface_AddReference

Add a reference to a selected content.

Syntax

ContentInterface_AddReference <content interface handle1> <content interface handle2>

Type/Class

ContentInterface

Description

To add reference to a selected content. Note that the parent file should be checked out.
content interface handle1
Content Interface handle of the content which will get a reference file
content interface handle 2
Content interface handle of the content which will be added as reference

Examples

set query [$gdm ExecQuery $stringtosearch $clist]
set cilistsize [ContentInterfaceList_size $clist]
set content_parent [ContentInterfaceList_at $clist 0]
set content_reference [ContentInterfaceList_at $clist 1]
set status [ContentInterface_AddReference $ content_parent $ content_reference]