Forum Discussion

IBK's avatar
IBK
New Contributor III
2 months ago

Pushing an item from one list box to another on button click. But how we have the items selected.

Hello,

     I am having trouble with a selection screen on a Dashboard where items are moved from one ListBox to another. It is a multiselect=True but how can we have the items selected on the 2nd list box. I have to read this list in a BR but until and unless they are selected the item is not passed to the BR for further processing.

Any help would be appreciated.

Thank You,

Indu

  • IBK's avatar
    IBK
    New Contributor III

    Has someone had to do anything. Where you have 2 list boxes and you move items from one to another.

    Thank You,

    Indu

     

  • keknapp's avatar
    keknapp
    New Contributor II

    Here's one possibility. The list box on the left is bound to a parameter and it is set up with multiselect = true.  The list box on the right is bound to another parameter and it is set to multiselect = true also.  When the user selects multiple items from the left list box, the bound parameter becomes a delimited list, such as "item1,item2,item3".  If you set the bound parameter of the right list box to the bound parameter of the left list box (in code).  Then all you need to do is to remove the items from the left list box (refresh the left list box and also the right list box) and I believe you should get what you are looking for.  I hope I understood your question and provided a possible solution.  🙂

    • IBK's avatar
      IBK
      New Contributor III

      Thank You for the suggestion. Yes I am doing that but the problem I am having is when I Refresh as below I loose the parameter value set in the BR.  I set the parameters in  the Dashboard Extender BR and want to make use of the list in the Dashboard Datset in order to populate the ListBox. That comes up empty and am not sure why.

       

       

       

      • keknapp's avatar
        keknapp
        New Contributor II

        I'm wondering if the parameter would be available if you created a "supplied parameter" and referenced the parameter that is missing and placed the "supplied parameter" on the dashboard that contains the list.  I may be missing something, but it almost sounds as if the parameter is not making its way back to the dashboard.  Have to think about reasons it wouldn't have the parameter value after setting it in the BR.