Hi Everyone,
I have a listpicker populated with a recordset (same code of table taifun).
Someone can tell me why in a listpicker, when I press the first time, the list of items is not displayed, if I click again instead yes.
It happens only the firse time I run, from the second on I have no problems.
It happens on companion but on emulator too.
listpicker.beforepicking call a query that populates list "listaDaMostrare". (it work)
Then, I add every item in three sublist, so I show 1 list in listpicker and I can control ID in other lists.
As I guessed, you are setting the listpicker1 elements AFTER you have called the listpicker (even though you think you have done it before the picker opens). The picker will open at the same time as you run the query.
Use a button to perform the actions in your beforePicking event, then call the listpicker to open at the end of the procedure riempiMenuListPicker in the if statement.
This is not the same.... the elements are loaded from a list that already exists.
You can use a button. Simply change the visibility of the listpicker button to false and replace with a button. In your procedure, the if/else statement at the end, include the call Listpicker(x).Open block. This will open the listpicker with the loaded list.
It works.
Just one detail.
When I pick on first ListPicker, list disappear and show second list, but the screen below appears for a moment.
There is no continuity between two list.
It is not nice to see.
Any suggenstion?
All your screen elements are contained within an arrangement. When the Pick button is pressed, this arrangement is hidden, and another arrangement, with a black background (or a background colour matching your listpickers) is made visible. This is all reversed after a selection is made from the second listpicker.
Here is an example of how to show breadcrumbs for a nested List Picker.
The base table is pre-loaded at Screen Initialize time, so I was able to load at before Selection time ...