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 set attributes of a Cateogry and apply it to a document/Object? Dear Richard Boyne, please he
Richard_Ma_(mtrcadmin_-_(deleted))
I can successfully retrieve the Category Version and Attribute List by:LL_FetchCategoryVersionLL_AttrListNamesThe next step I need to do is to create a loop to assign the attribute value one by one. I use the following code:while LL_ListGetString(....) = LL_OK ... ...wendInside the loop, I should use LL_AttrSetValues(...) to assign the attributes. However, question is:1. What value should I pass for the function as attrValuesType?2. What is attrValues, and how can I define its values and type?Thank you very much for your help. Thank you!
Find more posts tagged with
Comments
Richard_Boyne_(boyne_(Delete)_891609)
1. What value should I pass for the function as attrValuesType?The attrValuesType parameter designates whether the function is to set/change/update a. the default value for the attribute in the Category definition. That is you are creating/updating the Definition of the attribute in the category.orb. the data value for the attribute in this current instance of the category version. That is, you plan to assign the catVersion to a document/Object.From the doc. for AttrSetValues,"This function sets the default or data values for an attribute. For default values, the function is used during category attribute definition processing. For data values, the function is used during node category updating. The attrValues list overwrites the existing default or data values for the attribute....attrValuesType - indicates which type of values are set by the function. In the C/C++ and Visual Basic environments, constants must be preceded by LL_, thus ATTR_DATAVALUES becomes LL_ATTR_DATAVALUES. In the Java environment, constants must be preceded by the class name, thus ATTR_DATAVALUES becomes LAPI_ATTRIBUTES.ATTR_DATAVALUES. Valid attribute type constants are ATTR_DATAVALUES and ATTR_DEFAULTVALUES"To set/change/update an attribute's value on your document/Object you would use the LL_ATTR_DATAVALUES constant as this parameter's value.2. What is attrValues, and how can I define its values and type?"attrValues - a List value object that holds the updated data or default attribute values "That is, it is an LLVALUE object of type List.See the "Value API" section of the online doc. Especially the subsection titled, "List Management". Functions in this latter section can be used to manipulate an LLVALUE of type List. regards. Rich.
Richard_Ma_(mtrcadmin_-_(deleted))
I really wonder... I can't find the "List Management" subsection in Value API section of my documentation. What I have is LL_ValueAlloc and LL_ValueFree, nothing else...Can u provide any link where I can find this in OpenText.com? Thanks a lot.Regards.
Richard_Boyne_(boyne_(Delete)_891609)
When I bring up the Livelink SDK online doc. by clicking on the "Start" button and "Programs" "Livelink" "Livelink Builder Help", I get the Builder documentation index page(...\builder\documentation\index.html). From that page I click on the "Livelink API Developer's Reference" link. This brings up the initial LAPI doc page, consisting of a "Table of Contents" frame on the left and the doc content frame on the right(...\builder\documentation\lapi\frameset.html).When I click on the triangle next to the "Value API" link in the "Table of Contents" frame, sub-section links of the "Value API" are displayed in the "Table of Contents" frame. These "Value API" sub-section links include "C/C++ and Visual Basic Overview", "LL_ValueAlloc", etc. One of the last "Value API" sub-section links is "List Management". When I click on the "List Management" sub-section link the corresponding list processing Value API sub-section is displayed in the right-hand frame of the LAPI doc page.If these steps do not work for you then your Builder help installation may be incorrect or incomplete. Your Customer Support Rep. should be able to help you in that case.My guess is that you have the LAPI online doc but that you tend to access it in a manner that is different from what I described above. I base this on your prior posting(
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2509231&objAction=view&show=2)
that contained the code segment:"while LL_ListGetString(....) = LL_OK... ...wend"The LL_ListGetString function that you reference in this segment is a List Management function. My scanning of the LAPI html files indicate that ListGetString only appears in the List Management sub-section of the LAPI doc.good luck.regards.Rich.