Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OScript - create a category node with attributes

Status
Not open for further replies.

mcoco

Programmer
Jul 13, 2009
2
DE
Hello,

in the Configure object of my OSpace i need to create a Category in the category volume with certain attributes attached.

I couldn't find any good documentation, on how to create a category in the category ws.

Anyone does have some hints, could point out the right direction?

Thanks in advance,
coco
 
Assuming that you want to create a category object programmatically(Hopefully you are not trying to attach category info to other node types) you first want to use the
lliapi llnode subsystem and get the subtype for the category object.This will give you the template of the object.It will be best to debug/trace the GUI creation of a category or follow the Livelink API documentation and put a break and trace form there.I have not done this personally but if I was trying to do this I would do it like this.Also I would look at the XML methods available to me.BTW to create a document or a folder that is the method that oscript programmers use so I guessed it would be the same for 131's also.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008
 
Hi appnair,


Thanks for your idea with the XmlImport.

You where right. I'm only adding a category to the category volume.

Instead of hassling around with the CreateNode stuff (which seems to be pretty complicated, though) i'm now using the XmlImporter.

$Xml.XmlUtil.Import did it.
I'm using the $Xml.XmlUtil.Export function to gather the category data in an XML File. When installing the module, i only need to point to the right xml file, and the data is imported.

Thanks,
coco
 
you may have a need to program this but people from a test sytem just generate an xml export of the category volume thru the URL and on the target system use a XMLImport that is why I thought that might help.There are more powerful xml methods than those too,do at your own pace.Glad to see you are making inroads.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top