Skip to Content
author's profile photo Former Member
Former Member

adding values dynamicaly in dropdown

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

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 12:52 PM

    Hi,

    See your previous thread.

    Kind Regards,

    S.Saravanan.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 10:54 AM

    Use forum search.

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 11:54 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 01:02 PM

    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

    Add comment
    10|10000 characters needed characters exceeded