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

Dropdown values order change

Hi experts,

I have DropdownbyIndex in my webdynpro screen. The values are coming from (BAPI.Using Jco connection)

In BAPI values are displayed in the BAPI side the following ways

1.ABAP

2.XI

3.EP

4.BI

in My webdynpro dropdown values are displayed in the same order. Is there any possiblity to change the order?If yes How to change the order of the values(without chaging from BAPI side) and how to display the different order in the dropdown?

Regards,

P.Manivannan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 03:02 PM

    hi,

    create a context node and attribute of type String .

    copy the model data from the model node to a collection(for eg List) and sort it in what ever order you want.

    use the below code to populate the node .

    wdContext.node<ValueNode>.bind(<Collection>);

    bind the attribute to the text property of drop down by index.

    Thanks and Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2008 at 06:27 AM

    Hi,

    Create a simple type . n give values n coressponding text in ur desired order.

    now create a value node in context of vew . map the value prperty wid this simpletype,whch u hv created.

    hpe it will solve ur problm.

    Regards

    Khushboo

    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.