Listpicker not showing selected item

Hi all,

I've just started using App Inventor so I might have done something wrong but I can't find it.

I have a listpicker widget in my app. I have filled in the list of items to choose from in "blocks", using the setter on property "Elements". The "Text" property has been filled in in the "designer" and set to "Select a value...".

I'm in the main screen, when I click on the listpicker a new screen appears where all list items are correctly shown. When I choose one of them the selection screen is closed and the app goes back to the main screen as expected. In this screen the listpicker doesn't show the item I've chosen but it keeps showing the "Select a value..." text.

I've added a txt box in the main screen, just to make some variable inspection. If I use the AfterPicking even of the listpicker to set the "Text" property of that text box to the listpicker "Selection" property, the text box correctly shows the item I've selected in the listpicker.

The listpicker "Enabled" property in "designer" is checked which means the widget is enabled.

I've also filled in the listpicker items using "ElementsFromString" in the "designer" but I have the same problem: the list of items is correctly shown, I choose one but the selection is not shown in the main screen.

Apparently, the selection has been correctly picked (otherwise it won't appear in the text box) but it's not shown in the listpicker widget. Whatever item I select, the lipsticker always shows "Select a value...".

Any idea?

Ciao,
Max

Do the same to the ListPicker.Text value in that context.

Wow... it works!

So whenever an item is selected I have to copy that selection to the "Text" property of the listpicker to have it shown... I thought it was automatic.

Is there a reason for that?

Anyway, thanks, you solved the problem.

Ciao,
Max

Sometimes, in Design, Less is More.