I am trying to extend the length of Attribute using LAPI. Following code I am using to Extend/Add the length.
***********
int status = 0;
status = attr.AttrSetValues(catVersion, "Publisher", attr.ATTR_DATAVALUES, attrValPath, attrValues);
if (status != 0)
{
System.out.println("AttrSetValues Failed.");
return;
}
else
{
attrValues.add( "Length", 150 );
attrValues.add( "DisplayLen", 150 );
}
I get below error messge when I do it..
add(name,value) not implemented for this datatype
com.opentext.api.LLIllegalOperationException: add(name,value) not implemented fo
r this datatype
at com.opentext.api.LLInstance.add(Unknown Source)
at com.opentext.api.LLValue.add(Unknown Source)
at ADWC.main(ADWC.java:197)
*************
When I see the ouput of the ASSOC, it shows Length=48. Some of the attributes what we are using are more than 150 charecters in length.
How should I set the length of attribute using LAPI.
Thanks