User Input Chart App

I’m trying to create a really basic app to help my wife. All I need is:

  • Multiple pages that you can swipe through, all identical
  • Each page will consist of a chart with multiple column and rows
  • Each cell will allow you to type a couple numbers/letters (i.e. 2oz., 8/5, 12:00p.m.)
  • Information entered in each cell will be permanently saved even on phone reboot
  • Reset button will clear the cells of that page

Think Excel spreadsheet interface.

For page changes I tried using Director. For saving information I tried using ice.lua and saveit.lua, since I’m not familiar with JSON. The biggest issue I’m having is finding the best way to create 72+ text input boxes per page that will keep the user input data on page change, app exit and phone reboot.

Has anyone ever made an app similar to this? [import]uid: 98804 topic_id: 29527 reply_id: 329527[/import]

I’ll give fair warning, I’m new to programming, so this may be inefficient and/or wrong. Hopefully someone with more experience can chime in and help out. That being said, here are some thoughts:

Screen Changes
You can use Director, but Corona now has the Storyboard API, which is officially supported.

Saving & Loading Data
You might look into using an SQLite DB, which also uses a row/column structure to organize data.

Text Input Fields
Seeing how your input fields are all the same, you could create a single constructor function for the text fields and then just use a loop to add as many as you need. You could display them by cutting the screen width and height into a grid. So it would be like: screen width / (however many columns) and screen height / (however many rows). [import]uid: 14700 topic_id: 29527 reply_id: 118533[/import]

Thanks for the help, I opted just to alter an old app I create in Xcode/Objective-C to do the job since it’s just an app for my wife and won’t be going on the app store.

She just wanted it to track how much our newborn eats, when she eats, number of dirty diapers, etc. [import]uid: 98804 topic_id: 29527 reply_id: 118646[/import]