cancel
Showing results for 
Search instead for 
Did you mean: 

adding values dynamicaly in dropdown

Former Member
0 Kudos

hi

I want to insert the options in dropdown dynamicaly so can any one help me in this which dropdown i should use and byKey/byIndex and what code i need to write

Thanks

Ninad

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Ninad,

Check out this code:

Create node attribute of type DropDownByKey and then proceed like,

IWDAttributeInfo CityInfo = wdContext.nodeTravelData().getNodeInfo().getAttribute("Destination City");

ISimpleTypeModifiable cityType = cityInfo.getModifiableSimpleType();

IModifiableSimpleValueSet cityValueSet = cityType.getSVServices().getModifiableSimpleValueSet();

cityValueSet.put("1","Banglore");

cityValueSet.put("2","Delhi");

cityValueSet.put("3","Pune");

Regards

Venkat

Former Member
0 Kudos

Hi,

See your previous thread.

Kind Regards,

S.Saravanan.

Former Member
0 Kudos

Ninad

Use Drop down by index. Write an RFC to populate the drop down values and bind the output table to the drop down on your iview.

Former Member
0 Kudos

Use forum search.

Armin