on 11-29-2016 3:10 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why do you have the reload method? Why not use the setFilter method on the Listbox component?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.