Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
How to assign a value to a attribute LAPI?
Anuradha_Deo_(PATCOM01User2_(Delete)_2735478)
How to assign a value to a attribute of a category associated with a document using LAPI(Java).Attribute I want to assign a value is of type text field.
Find more posts tagged with
Comments
eLink User
Message from chris meyer via eLinkWhat you are trying to do is brutal, but this code snippet demonstrates it.I would recommend encapsulating the steps in a method to make it easier touse. The .getDataID() methods you see just retrieves the DataIDs accordingto Livelink.. The attributename variable is a String with the name of theattribute.LLValue catID = getBlankAssoc();catID.add("ID", category.getDataID());catID.add("Version", 0);catID.add("Type", LAPI_ATTRIBUTES.CATEGORY_TYPE_LIBRARY);LLValue nodeID = getBlankAssoc();nodeID.add("ID", node.getDataID());nodeID.add("Version", 0);nodeID.add("Type", LAPI_ATTRIBUTES.CATEGORY_TYPE_LIBRARY);LLValue catVersion = getBlankAssoc();documents.GetObjectAttributesEx(nodeID, catID, catVersion);LLValue llvalue = new LLValue().setList();llvalue.setSize(1);llvalue.setString(0, "lalala");attributes.AttrSetValues(catVersion, attributename,LAPI_ATTRIBUTES.ATTR_DATAVALUES, null, llvalue );documents.SetObjectAttributesEx(nodeID, catVersion);Good luck.. chris----- Original Message -----From: "eLink Discussion: LAPI Discussion" To: "eLink Recipient" Sent: Monday, May 27, 2002 1:00 PMSubject: How to assign a value to a attribute LAPI?> How to assign a value to a attribute LAPI?> Posted by PATCOM01User2 on 05/27/2002 06:59 AM>> How to assign a value to a attribute of a category associated with adocument using LAPI(Java).> Attribute I want to assign a value is of type text field.>>> [To reply to this thread, use your normal e-mail reply function.]>> ============================================================>> Discussion: LAPI Discussion>
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=765428&objAction=view>>
; Livelink Server:>
https://knowledge.opentext.com/knowledge/livelink.exe>>>
;