Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Max,
Thank you for your answer, but I need to get the selected item in the list, in order to show it in the next page. The tutorial does not access the selected item index.
Code: Select all
Thank you very much,As a complement to my last reply I need to invoke the listview click event and, inside it, get the selected item index.
Thanks
Hi,
Next code should help:
precode
Appery("mobileselectmenu_44").find(":selected").index();
/code/pre
Please change your component name.
Check the generate code, I think the index should be in the element. If yes, you can read it. If not, you would need to add a custom attribute that holds the index of the item.
I think this should work to select menu widget, but I tried to listview and it returns only the index -1. Any other suggestion?
Code: Select all
Thank you all.Hi,
Code: Select all
Do you have any other suggestion? Isn't it possible to get the selected item index from listview as you get it from select menu? Thank you very much.
Hi, Pasteur.
Add Run JavaScript action on click event on mobileList with this code
alert($(this).find("li:not([_tmpl=true])").index($(arguments[0].target).parents("li")));
Hi Oleg,
Thank you very much, this code worked!
Again, your support and application builder is amazing. Congratulations!