Hi There,
Why would you try to "CREATE" a category rather than "APPLY" it ?
What you are doing in code is akin to a user in livelink "CREATING" a category subtype(131)
your code
'*** Category Creation ***'
lStatus = LL_CreateObjectEx(hSession, nodeVol, nodeID, LL_OBJECTTYPE,
LL_CATEGORYSUBTYPE, sName, createInfo, lObjInfo)
tells me that.In livelink a category object is pre created and that template(it is just that) is used to define additional
metadata about an object.It is not as if if you were adding 1000 documents 1000 categories also were added.I would suspect
that if each document/folder in livelink had its own category object it would be a terribly useless system.There is nothing preventing
you in lapi in creating 1 million category objects,it would just hog the search system.
Hope you understand the livelink business rules.
So in VB6 you would either create a category using the gui and note its dataid
.Note its dataid.Now using the gui add the document,find the category
that you added in step 1,fill its values and add.So livelink will register the node in dtree and the node's attribute data
in llattrblobdata and llattrdata.
Here's a java sample I wrote long time back
that does this
1)It adds a document
2)While doing that it sets the values of a category object for the document type.Note I do not create
a category object in this code.This is applying we are not changing the actual category template itself.
3)All said and done if you look at the categories tab of the document object in the GUI it will show the
metadata the program put there
all you have to do is understand the program flow and use VB6 for it.n
I do not have VB6 or it would take me no time to write a small sample for you
If it is a microsoft shop I would try examples in C# and convert it into VB6.
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,Livelink ECM Champion 2010