Get all values from a translated cascaded list
I am new in Agile and Groovy. I’ve read some tutoriais, but it was not possible to answer my question.
I have a field (ATT_PAGE_THREE_LIST08) filled by a cascade list and I need to get the selected value in each language (Portuguese, English and Spanish).
Is it possible?
To get the current idiom, I use obj.getValueByAttId(ItemConstants.ATT_PAGE_THREE_LIST08).
Did the obj.getValuebyAttId() not work for you? Instead of ItemConstants, try the Base ID value instead or even the IItem.getValue() method instead. I’ve had trouble with Page Three fields before too, so I tend to use the Base ID instead.
Try CommonConstants as well too.
Hi @Matt Paulhus. Thank you for your support.
Yes, obj.getValuebyAttId() worked fine, but in this ways I just get the current session language value.
My need is to get the three languages created for this cascaded value, no just the selected by the user in the session.
Is there a way to get it?
So you need the available list values, correct (and i.e., not the specific value on a particular Part or Document)? You need the IListLibrary and IAdminList dataobjects and set of methods. I’ve never done a Cascade List specifically, but there’s a section about it in the Agile 9.3.X SDK Developer Guide – User APIs.