View Full Version : Problem with go back Item.

7 Dec 2011, 9:19 AM

I have a problem with a function, who do a go back of the panel.
I explain, i have a tabPanel, in a tab, i have a nestedlist contain a list, contain a panel detail, contain some views in button.
I have a function when i go to another tab and i'm in a panel of a detailcard for example, the function do a go back to the begining of the nestedlist.

this is the function:

backtoIndex: function() {
while (App.views.DirectoryDetailContainer.items.indexOf(
App.views.DirectoryDetailContainer.getActiveItem()) > 0) {
while (App.views.DirectoryListContainer.items.indexOf(
App.views.DirectoryListContainer.getActiveItem()) > 0) {
while (App.views.DirectoryNestedList.items.indexOf(
App.views.DirectoryNestedList.getActiveItem()) > 0) {

this Back functions are just the back of the return button in the toolbars of each panels. then this is just the setActiveItem of each panels.

The problem is for the detailView of the list, the view with a button, i have for example a button map, when i change of tab, the while do the action back, i tested with some alert. But when i come back to an another item or the same, i must have the list and after the main view detail with button, but at the place, i have the last panel map ....

It's difficult to understand all the situation :-? . I don't know where is the problem ....

Can you help me please?

9 Dec 2011, 11:04 AM
I have no clue what you are trying to accomplish.