Open a detail view from table view without using tabbar
Hi,
I am new to titanium sdk and trying to create a basic application.
The application is simple with a TableView and on click of table view row the detail view appears.
For opening the detail view window i am using the code below Titanium.UI.currentWindow.open(win , {animated:true});
but it doesn't open the detail view…is there anything wrong in this? please advise.
Let me know if there is other way of doing this.
BTW - here is the complete source <a href = "http://pastie.org/994632">http://pastie.org/994632</a>
Thanks.
3 Answers
-
Hi Yogesh,
There are a couple of potential issues here - the first is that if this code resides in app.js, there is no "current window" yet - that property comes into play when a window is opened with an external URL. Also, to get the automatic push animation when you open a new window, you will need to call open on a tab group or a navigation group (iPhone only):
var navGroup = Ti.UI.iPhone.createNavigationGroup({ window:aWindowYouCreate }); navGroup.open(anotherWindow);
-
Kevin - Thank you for this tip
Here is the piece of code i have updated after Kevin's advise http://pastie.org/996075
-
Kevin - Thank you for this tip
Here is the piece of code i have updated after Kevin's advise http://pastie.org/996075