Skip to Content
0

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

Oct 20, 2016 at 02:18 PM

635

avatar image

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


10 |10000 characters needed characters left characters exceeded
Former Member

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

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Tammy Powlas
Oct 21, 2016 at 12:22 PM
0

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)
Share
10 |10000 characters needed characters left characters exceeded
Rashmi Hirematt Nov 04, 2016 at 08:41 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded