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
Getting ValidVals List from ListAttributes() method in Java
Ray_Peterson_(rpeterso_-_(deleted))
I'm having problems retrieving the ValidVals List after making a successful call to ListAttributes(). Here's a snippet of my code:if (objInfo.toString(x, "DispType").equals(ATTR_DISPTYPE_POPUP)) { LLValue validVals = objInfo.toValue(x, "ValidVals"); System.out.println(" Valid values:"); for (int y = 0; y < validVals.size(); y++) { System.out.println(" " + validVals.toString(y)); }}Unfortunately, the only thing that happens is the following error:java.lang.ArrayIndexOutOfBoundsException: 1 at com.opentext.api.LLString.(LLString.java) at com.opentext.api.LLValue.(LLValue.java) at com.opentext.api.LLString.get(LLString.java) at com.opentext.api.LLValue.toString(LLValue.java) at qcpinc.livelink.LL_Library.getAttributes(Compiled Code) at qcpinc.livelink.LL_Library.main(LL_Library.java:1060)I've checked the size() of the List that's returned, and it's 246 (which seems awefully large, considering there's really only about 10 valid values), so it should display *something*.If anyone has any help or suggestions, please...TIA
Find more posts tagged with
Comments
Cisco_Developer_(ciscouser2_-_(deleted))
Hi,I am getting same error while retiving data, If you having any solution converting LLString to LLList Please Help me -Sanjay
Krishnankutty_Nair
The ListAttributes is a function in the additional Node support.Are you really looking for that or the stuff from Categories and Attributes.I think when you do not have any additional node attributes it can throw you an array out of bounds.AttrGetValues and other methods in acts and att LAPI is probably what you need