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

how to populate values in to dropdown in table ui element

Hi,

according to my scenario i have atable with five records ...andi have acolumn name DATE and it contains 5 dropdowns with some values i.e dates from jan 1 2008-dec 31 2008.user needs to select only those values which are in dropdown. can u tell me the code to populate values in to dropdown in table UI element.

Thanks

Raju

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 04:32 AM

    HI

    Hi iam new to webdynpro .can u please explain me SUPPLY function with an example.

    Thanks

    Raju

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 22, 2008 at 04:44 AM

    Hi,

    you can go for two drop downs like DropDown by Key or Drop Down by Index as per requirment.

    Create context Node for the table UI, in that one will be for ur drop down. Create element for the Context node and add thses to the conetxt.

    Code example for DropDownBy Key:-

    ISimpleType simpleType = wdContext .nodeProjEstiTable().getNodeInfo()

    .getAttribute("projphasname") .getModifiableSimpleType();

    IModifiableSimpleValueSet svs1 =

    simpleType.getSVServices().getModifiableSimpleValueSet();

    svs1.clear();

    for (int j = 0; j < projphasname.length; j++) {

    svs1.put(projphasname[j][1], projphasname[j][1]);

    }

    for DropDownBy Index you can work in normal way means try to create element for the respective context attribute.

    Hope this may help you...

    Deepak

    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.