cancel
Showing results for 
Search instead for 
Did you mean: 

when using load/reload datasource method in design studio 1.6

abdussamad_peera
Participant
0 Kudos

stepan1.jpgstepan2.jpg

Hi

I have multiple listboxes in my app when I make a selection in my listboxes the selection is highlighted in blue and a filter gets applied to the datasource. All works well until I click on a checkbox which provides a value for the Bex variable and I call a reload() method to refresh the query and this causes all the highlighted values in listboxes to lose focus - the selections get unchecked. How to keep the selected values highlighted?

Thanks

Abdul

Accepted Solutions (0)

Answers (5)

Answers (5)

abdussamad_peera
Participant
0 Kudos

I have typed answer to your question 2 times and submitted/posted it but it doesn't seem to be showing my response.

It keeps losing my response. let's see if this answer shows up.

former_member265529
Contributor
0 Kudos

Hi Abdussamad Peera,

Can you show us the code you used in List box?

And do you change value of global variable in each selection of list box?

Thanks,

Poovarasan

abdussamad_peera
Participant
0 Kudos

Hi Poovarasan,

I am now using the binding method as you suggested. However, when I go to another tab which loads data from another query all my listbox selections are lost even when I save them and reset them after the load. So no matter what I do, when I load a query I lose listbox selections.

Abdul

former_member265529
Contributor
0 Kudos

Hi Abdussamad Peera,

Have you used data binding for items in list box?

If so for datasource reload it will affect the components.

Then you don't have to reload datasource to get changes for passing variable, it will work without reloading data source.

If you want to reload for some reasons in your case, you can store the selected values of list boxes in a global variable and use them in code in checkbox to set the values selected again.

The code is

Listbox_1.setSelectedvalue("Listbox_selected_value");

Thanks,

Poovarasan

TammyPowlas
Active Contributor
0 Kudos

Why do you have the reload method? Why not use the setFilter method on the Listbox component?