cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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,

Rashmi


former_member265529
Contributor
0 Kudos

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 ?.

Thanks,

Poovarasan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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,
Rashmi

TammyPowlas
Active Contributor
0 Kudos

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