Get former value from listpicker

Have a problem when using listpicker and "sub menus".

If I choose "Sub1" from main menu, picklist LP_sub1 popps up, I choose A then global Selection gets value 333
If I do the same again, first then global Selection gets value A
If I after that choose "Sub1" from main menu, picklist LP_sub1 popps up, I choose B then global Selection gets value A
And the same again, I choose C and then global Selection gets value B.
Seems like global Selection does not gets the value for what I'm picking, it gets the value from what I picked just before the latest picking.

When I choose Sub3, everything works global Selection gets value G

Must be something with the call function I think but I cant understand what and how to fix it

Looks like it is working exactly as you have programmed it.....

As always :slight_smile: The question is how I shall program it to work as I want. To always get the value from the latest picking and not the one before

How to create a nested listpicker
Taifun

Here is another nested list picker sample ...

It is alway showing latest selection only, from subList, as I can see

Think I found my problem. Its not a problem setting global selection, everybody was right! The problem was the get function.

This doesn't work:

This works:

It seems like I can not handle the global selection inside the "AfterPicking function" it has to be done outside. Just like you illustrated RamNaresh.

But how can I do that without a button?

Thenks Taifun and ABG for the models of nested list pickers, much more flexible to work with!

Maybe you are concerned about Do It