Page 1 of 1

How to set property on select box after clicking from a list?

Posted: Mon Apr 14, 2014 8:24 pm
by Janise Dismuke

When I click the 2nd item in the list, on the next page the local variable is not pushing to the (status) select box when page show. It is showing the status from the 1st item in list. When I click the 1st item on the list status pushes perfectly.

Image

For testing purpose, the label below the select box is pulling at the same time the select box is and is showing the correct information.

Image

How can I get the (status) select box to show the correct variable from the appropiate item in list on page show


How to set property on select box after clicking from a list?

Posted: Mon Apr 14, 2014 9:18 pm
by Illya Stepanov

Hi Janise -

As I understand, you can't set the needed value for selectmenue component?

Please look here:
:: http://stackoverflow.com/questions/83...


How to set property on select box after clicking from a list?

Posted: Mon Apr 14, 2014 9:33 pm
by Janise Dismuke

Would I put that in my run Javascript on page load?


How to set property on select box after clicking from a list?

Posted: Mon Apr 14, 2014 9:48 pm
by Janise Dismuke

Can I do it without putting in code?


How to set property on select box after clicking from a list?

Posted: Mon Apr 14, 2014 10:10 pm
by Illya Stepanov

As you using value after transition to the next page, you'll need to save value from first page to local storage variable and update selectmenu component with it and refresh the component, all this can be done on page load event.


How to set property on select box after clicking from a list?

Posted: Mon Apr 14, 2014 10:11 pm
by Illya Stepanov

Hope this will give some clue: http://docs.appery.io/tutorials/build...