You must Login before you can answer or rate any questions.

Modifying table from another window

0

Hi,

Is there anyway I can add a row to a table in a window previously opened from my current window?

is there something like:

previousWindow.TableView.insertRow();

??

Cheers

Ian

2 Answers

0

Hi Ian,

You could also store the tableview array in a list property, update it elsewhere, then invoke getList and 'setData' in the window 'focus' event for the one with the tableview, to refresh its contents.

cheers, Chris.


0

Have a look at the API docs for Titanium.UI.Window, down at the bottom it describes how to achieve inter-window communication by setting variables on the 'child' window. With a complex entity like a TableView you may have to explicitly fire an event on the first window to achieve this.