So I have a Titanium.UI.tableview in my main window in my tab group which displays a list of questions.
In another tab I have an “add a question” form. When this is filled out and submitted if it all goes through I need to be able to update the data in the table view in the first window.
How would I do this? I don’t mind where it happens… I was trying to find a way of refreshing the tableview data when you click onto that tab, but if there’s some way of “remotely” updating the table view (from the add a question view) that would be the best way really (so it doesn’t have to update EVERY time you click that tab).
Thank you.
I’m not sure about this, but maybe you can try to store your questions as a list property for the app??
Then when you’re filling out the TableView rows just call each question in a loop
That way, whenever you need to add a new question to the list, just call it and push your new question into the list.