Skip to Content

SAP Design Studio dropdown list populating 'ALL' value when setSelectedValue() is provided

Hi Experts,

I am working on Design Studio v1.5.

The dropdownlist should display a Category value by default. There is no prompt for Category and should not have it as per business requirement.

The Code is as below-

Line 1  Dropdown_1. setItems(.........) without 'ALL' value.
Line 2  Dropdown_1.setSelectedValue("Shopping");
Line 3  text_title.setText(Dropdown_1.getSelectedValue());

Even though, the text box displays the selected value as "Shopping", 'ALL' is populated in dropdown_1 :(

Please help resolve this!!

Many thanks in advance.

Best Regards,


Add comment
10|10000 characters needed characters exceeded

  • Hi Rashmi,

    For testing purpose, can you remove DROPDOWN_1.setSelectedValue("xyz"); code from startup and add it to a button and check whether the the all value appears only after the button click.

    If it only appears after the button click, can you check the value you get for the selection of "All value" in dropdown ?.



  • Get RSS Feed

2 Answers

  • Oct 21, 2016 at 12:22 PM

    Is the "ALL" value still set in the startup area of your application? See below:

    DROPDOWN_1.setItems(DS_1.getMemberList("ZPROJ", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 5, "ALL")); DROPDOWN_1.setSelectedValue("2011");

    DS_1.setFilter("ZPROJ", DROPDOWN_1.getSelectedValue());

    You'll need to remove it from the startup application too

    startup.jpg (99.6 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 04, 2016 at 08:41 AM

    HI Tammy,

    Thanks for the response.

    No, 'ALL' value is removed from Startup script. Yet I see it appear in the list of values when I run my dashboard.
    Also, I have set a default value (using DROPDOWN_1.setSelectedValue("xyz");).
    Any thoughts, please suggest me!

    Best Regards,

    Add comment
    10|10000 characters needed characters exceeded