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
Fill in attributes of Category by JAVA API ?
Arnaud_Florentin_(chantuser4_-_(deleted))
Hello,I'm about to fill in the attributes of a Category using JAVA API and i don't know how to fill multi-rows fields (fields you can add or remove rows by pressing on "+" or "-" button) . Is anybody have an idea in how to do this ?
Find more posts tagged with
Comments
Sylvain_Bellefeuille
private boolean setAttributes(LLValue catVersion, LAPI_ATTRIBUTES attr, String attrType, String attrName, String info) { LLValue listVal = new LLValue().setList(); LLValue attrValPath = new LLValue(); LLValue infoVal = new LLValue(); if ( attrType.equals(ATTR_STRING) ) infoVal = (new LLValue()).setString(info); else if ( attrType.equals(ATTR_DATE) ) infoVal = (new LLValue()).setDate(new java.util.Date(info));------------------------------------------------------------Sylvain BellefeuilleBellefeuille.Syylvain@hydro.qc.ca else if ( attrType.equals(ATTR_NUMBER) ) infoVal = (new LLValue()).setInteger(info); listVal.add(infoVal); return ( attr.AttrSetValues(catVersion, attrName, attr.ATTR_DATAVALUES, attrValPath, listVal) == 0 ); }