Skip to Content
0

when using load/reload datasource method in design studio 1.6

Nov 29, 2016 at 03:10 PM

493

avatar image

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

stepan1.jpg (24.7 kB)
stepan2.jpg (25.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Tammy Powlas
Nov 29, 2016 at 03:54 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 29, 2016 at 06:58 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
abdul peera Dec 05, 2016 at 02:45 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 05, 2016 at 04:10 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
abdul peera Dec 05, 2016 at 06:11 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded