Hello,
I would like to get some help on setting Text: Popup attribute values in category via LAPI / Java.
I am uploading the documents and able to set the string values for Text:Field but when it comes to Text: PopUp values, I am not able to set it. Could any one help.
Here's the sample code for both Text: Field and Text:Popup
Text:Field - WORKING
attrValues.add("This is test");
if (attr.AttrSetValues(catVersion, "Test", attr.ATTR_DATAVALUES, attrValPath, attrValues) != 0)
{
System.out.println("AttrSetValues Failed.");
return;
}
Text:PopUp - NOT WORKING
attrValues.add("Two");
if (attr.AttrSetValues(catVersion, "New", attr.ATTR_TYPE_STRPOPUP, attrValPath, attrValues) != 0)
{
System.out.println("AttrSetValues Failed.");
return;
}
Thanks in advance.