Skip to Content

Design Studio List Box - Clear Selection or Select All?

Hoping someone can help.

We have a dashboard with several cascading list boxes.

The list boxes are all multiple select.

As there are several list boxes the user requirement is a button that clears the selection in all list boxes at once rather than the user going back and clicking 'All' in each box.

It is simple enough to use the ListBox_1.setSelectedValue("") script to remove the selection but in the box itself the previously highlighted item is still shaded as if it is selected.

For the user this is very confusing as to them it appears the clear never occurred.

Does anyone have any suggestions on this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Aug 17, 2016 at 12:11 AM

    Hi Nicholas,

    You can try the following coding trick to clear the selections and highlighting in the List Box:

    var myNullSelection =[""];






    Add a comment
    10|10000 characters needed characters exceeded

    • Keerthy,

      Just as a further follow-up, the example you have provided appears to be an SAP developed application, which presumably you don't have access to to review the reset code. So, when you post your question on the SCN, you should provide your own specific application example and describe exactly the problem you need help solving, rather than presenting a generic example like the image you have included above.



  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2016 at 06:39 AM

    Hi mustafa,

    Even am facing the same issue where should i use that script. please help me out.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2016 at 07:27 AM

    Hi Nicholas,

    Is data getting filtered to all values when u using ListBox_1.setSelectedValue("")? or still data is showing for previous selection?

    try with below code on button's "On select" event


    Listbox_1.setSelectedValues("All Values")

    for "All Values" you can add it like below. Note: You can add this through script too.

    scn.PNG (19.0 kB)
    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.