Hi Matias
I have attached the code.
The app is a TabbedViewNavigatorApplication which defines one view views.admin.TTiMobileAdminHomeView.
In that view there are 3 views:
views.admin.TTiMobileAdminProjectsMenuView
views.admin.TTiMobileAdminProjectsView
views.admin.TTiMobileAdminNewProjectView
They are handled by setting their visible properties ie the TTiMobileAdminProjectsMenuView has a list click handler which looks to its parentDocument (which is TTiMobileAdminHomeView) to fire the relevant functions. This is not the most elegant way of doing things and I would appreciate pointers here to make this better.
The issue is that TTiMobileAdminNewProjectView fires an event which is handled in the AdminController.as - This works fine - it communicates with the service and returns good. I want to some how get to the functions in the TTiMobileAdminHomeView to get the relevant view ie fire its viewProjectsView function. Ive tried this by sending an event from the controller which is caught by TTiMobileAdminHomeView but then it causes a runtime error as newView (which is the id for TTiMobileAdminNewProjectView) is null.
I may be doing things all wrong so your hep is appreciated...