Inactivating the cascade list
I am trying to inactive the list(level1) of cascade list , I am having 4 list at level 1 but only 2 list are getting inactivated and i get this error:
com.agile.admin.client.value.AdminException: Please cancel this operation and refresh since a newer version of this object is available.
Error code : 20082
Error message : Please cancel this operation and refresh since a newer version of this object is available.
Root Cause exception : com.agile.admin.client.value.AdminException: Please cancel this operation and refresh since a newer version of this object is available.
IAdmin admin = session.getAdminInstance();
IListLibrary listLib = admin.getListLibrary();
IAdminList list = listLib.getAdminList(“TestList”)
IAgileList values= list.getValues()
How can i update it?
I may not be the right person to answer this, but since no one else has tried…
Based on your error message (and the code in your loop), it looks like you are attempting to obsolete a value and then add a value at the very same parent index. Actually, it looks like you’re obsoleting the parent and then trying to add a value to that parent. If you’ve obsoleted it, the object is likely no longer valid. You may have to do separate loops… one to obsolete, then get the objects fresh and loop through to add what you need to. This is not my area of expertise, but clearly you’ve altered an object and then attempting to do something with that object afterward. Is there some “refresh” command that you can instantiate somewhere within there?