target a tableView on a different tab?
i'm wanting to know if there's a way to target a tableView from another tab, also selecting a 'row' to open as well.
example:
in first tab, after an action completes successfully, it changes to the second tab ( where there is a tableView ) and 'selects' the first row in that tableView to open.
any ideas would be helpful, thanks!
rocksteady,
danno~
1 Answer
-
You should have a handle (access) to the tableview in the other tab, then set the active tab on your tab and fire the event
var tbl_other_tab;
var tabgroup;tabgroup.activeTab(1);
tbl_other_tab.fireEvent("click",{index : 1});
the tblview should get the event and its e.index would be 1 or the second row in the tableview