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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a 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 a 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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.