locked
how to retrieve selected list items in java script?

    Question

  • hi all,

             I created listview with some list items.I have created drop down box which i can select quantity of products.I can select multiple products(listitems).now the problem is i want to display selected listitems(products) in another html page whenever submit button is fired.I have trie but in vain.Please help me in this issue.Thanks in advance

    Friday, April 12, 2013 5:34 AM

Answers

  • One way to do this is to save the data using the ApplicationData API's and then retrieve the saved data when the other page is navigated to. When you click Submit, save the data using ApplicationData API's and in the load of the second page, retrieve the saved data. This sample shows how you can use the APIs: http://code.msdn.microsoft.com/windowsapps/ApplicationData-sample-fb043eb2


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog! http://aka.ms/t4vuvz

    Monday, April 15, 2013 10:35 PM
    Moderator
  • Hi,

    Check this link for win-interactive for a button on list view. You can do the same for select item. If you need help please post your full code and we can then help you further.

    - Girija

    Sunday, April 21, 2013 6:06 AM

All replies

  • Where are you "submitting" to? Are you navigating to another page when hitting the Submit button? Can you share your test application to SkyDrive for better understanding of your issue?

    Thanks,

    Prashant.


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog! http://aka.ms/t4vuvz

    Friday, April 12, 2013 9:22 PM
    Moderator
  • Is the drop down part of your list item ?

    Please share some more details of your problem.

    - Girija

    Friday, April 12, 2013 9:45 PM
  • hi prashanth,Thanks for reply.........whenevr submit button fires it should navigates to other html page where i want to display selectd list items along with quantity...........
    Saturday, April 13, 2013 7:15 AM
  • hi girija,Thanks fr ur reply.........drop down is part of my list item.........i can select multiple list items.I dont know how to save multiple selected items..........after selecting i want to click submit button so that selected list items has to be displayed in other html page.....please guide me in this issue
    Saturday, April 13, 2013 7:16 AM
  • One way to do this is to save the data using the ApplicationData API's and then retrieve the saved data when the other page is navigated to. When you click Submit, save the data using ApplicationData API's and in the load of the second page, retrieve the saved data. This sample shows how you can use the APIs: http://code.msdn.microsoft.com/windowsapps/ApplicationData-sample-fb043eb2


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog! http://aka.ms/t4vuvz

    Monday, April 15, 2013 10:35 PM
    Moderator
  • Hi,

    One way is to have the drop down as "win-interactive" so that when the user changes the option in drop down , you can track the same.

    Store all changes of users (along with other info/data) and pass that to the second page where you will display that.

    Let me know if you need further info.

    - Girija

    Tuesday, April 16, 2013 1:02 AM
  • hi girija.........I am not getting how to write code hw to use that applicationdata to store my selected list items...............could you plz guide me in this issue........any docs wil b helpful....
    Friday, April 19, 2013 5:35 AM
  • Hi,

    Check this link for win-interactive for a button on list view. You can do the same for select item. If you need help please post your full code and we can then help you further.

    - Girija

    Sunday, April 21, 2013 6:06 AM