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?

Add Comment
1 Answer(s)

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);

Agile Angel Answered on October 28, 2015.

I cannot find addToList() function in my AgileAPI.jar. can you please tell where is this function located?

on June 27, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.