Hi
I have successfully created a folder in content server 10 via Oscript, now I have to add a category to this folder, can you help me?
I found this code, does is it still valid?
To access an object's categories in Livelink 9, use the AttrData object. AttrData can be found in Builder at LLIAPI\LLIApiRoot\AttrObjects\AttrData.
First, allocate a new AttrData frame and pass in the objectID and version number (0 if object does not have versions). Next, populate the frame with the category and attribute values from the database.
Example:
Frame f = $LLIAPI.AttrData.New( prgCtx, <nodeID>, <versionnumber> )
f.DBGet()
You can then use various functions available in AttrData.
To add a category to the object:
f.AttrGroupAdd(<categoryID>)
To remove a category from the object:
f.AttrGroupDelete(<categoryID>, <categoryVersion>)
To clear all categories from the object:
f.AttrGroupClear()
For your modifications to take affect, you must save them to the database using the following statement:
f.DBPut()