locked
Data Entry

    Question

  • What is the best way to manage Data Entry in a windows 8 app. I am trying to make a To-Do list style app so want the user to be able to add items to their list and cannot for the life of me find information on how I would go about this! I can create the HTML side of it no problem but I dont know where I should put the data.

    I am using the grid app template and at the moment I am storing data in arrays inside the data.js but not sure if this is what I should be doing...?

    Thanks for any help

    Wednesday, December 18, 2013 11:00 AM

Answers

  • You will need to save the data somewhere. Typically you would use a database as mentioned in my previous response. When the app restarts (or when you navigate back to the page) you can reload the data from the database.

    --Rob

    Friday, December 27, 2013 1:05 AM
    Moderator

All replies

  • You probably want to store your data in a database.

    Options include in the cloud (such as in Windows Azure Mobile Services) so it can be shared across systems, Indexed database, or SQLite.

    --Rob

    Thursday, December 19, 2013 1:08 AM
    Moderator
  • Hi Byrne, it is not clear what you are looking for.

    assuming that you have got the html. that means you have built the form.

    regarding controls: this link lists all controls

    regards experience - you can likely use the appbar for the add command which can then take to a new page with form to add an item. but this is more of choice as per your app.

    Regarding binding: there is only one way binding available. that is from data to form, not from form to data. if you search on net, you can find examples how people have solved it for themselves. if you can manage using one way binding - well and good.

    regarding verification for form data: winjs does not have inbuilt framework.

    regarding saving the data: you can save the data at store of your choice as pointed out by Rob answer.

    regarding showing progress: it is good idea to show progress ring while you are sending data to your backend service if it takes more than say 1 sec. progress tag can be used.


    -sushil

    Thursday, December 19, 2013 3:54 AM
  • Hello,

    What I am looking to do is add / remove an item from my winJS.Binding.List and the result still be there the next time the user opens the app

    Sunday, December 22, 2013 6:35 PM
  • You will need to save the data somewhere. Typically you would use a database as mentioned in my previous response. When the app restarts (or when you navigate back to the page) you can reload the data from the database.

    --Rob

    Friday, December 27, 2013 1:05 AM
    Moderator