Adding value to a list
Hi All,
While adding new values to existing list using Agile SDK, I have used list.addChild(listValue), but this is throwing API Exception. As per my understanding, if we do not specify the API name, Agile will auto populate the same. Is there something which i am missing?
This is example I used to add new value to list “All Project reference”
// add new porjct to PrjectList IAdmin admin = session.getAdminInstance(); IListLibrary listLib = admin.getListLibrary(); // Get the Product Lines list IAdminList listProdLine = listLib.getAdminList("All Project reference"); // Add values to the list IAgileList listValues = listProdLine.getValues(); addToList(listValues,"Value name","API name","Description"); listProdLine.setValues(listValues);