Skip to main content
mmarmol80
Known Participant
October 13, 2010
Question

multiple waypoints?

  • October 13, 2010
  • 1 reply
  • 4494 views

I can't figure out how to manage waypoint inside waypoints. For example I have:

content [this is a waypoint]

content->login [view]

content->loading [view]

content->dashboard [view with a viewstack insede, so also a waypoint?]

content->dashboard->policies [view]

content->dashboard->reports [view]

content->dashboard->configurations [view wirh anothery waypoint?]

content->dashboard->configurations->list [regular view]

content->dashboard->configurations->panel [regular view]

content->dashboard->configurations->other [regular view]

When i had this everything was working just fine, my problems are been presented when i try to add waypoint insede another waypoint.

content [this is a waypoint]

content->login [view]

content->loading [view]

content->dashboard [view]

There is an example of multiple waypoints?

Also when I am using multiple waypoints should I change the annotation from [Waypoint] with something else?

Thanks!!!

This topic has been closed for replies.

1 reply

mmarmol80
mmarmol80Author
Known Participant
October 14, 2010

Well I was doing something else wrong, Now I managed to nest a waypoint inside another but I am been redirect automatically to the inner waypoint for some strange reason.

For this:

main [viewstack, waypoint]

main->login [view]

main->loading [view]

main->dashboard [viewstack, waypoint]

main->dashboard->policies [view]

main->dashboard->reports [view]

main->dashboard->configurations [view]

When I had only one waypoint and declaring content->login as the first element in the viewstack my application started there, but after adding content->dashboard->configurations as a waypoint my application is starting at login and going with out my intervention to content->dashboard.

I guess that again there is something I don't understand, any one can help me?

Log here:

main:firstEnter
main:everyEnter
waypointChange main
main
main.login:firstEnter
main.login:everyEnter
Add org.mxhero.console.frontend.presentation::Login to cache for [Domain 1]
Add object 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.MainView6._MainView_NavigatorContent1.SkinnableContainerSkin39.contentGroup.Login41' to [Context(FlexConfig{MainContext})]
Add mx.controls::LinkButton to cache for [Domain 1]
Add mx.states::SetProperty to cache for [Domain 1]
Add com.adobe.cairngorm.validation::ValidatorGroup to cache for [Domain 1]
Add mx.validators::EmailValidator to cache for [Domain 1]
Add mx.validators::StringValidator to cache for [Domain 1]
Add mx.containers::FormItem to cache for [Domain 1]
Add spark.components::Button to cache for [Domain 1]
Add spark.components::TextInput to cache for [Domain 1]
Add spark.components.supportClasses::DisplayLayer to cache for [Domain 1]
Add mx.containers::Form to cache for [Domain 1]
Add spark.components::Panel to cache for [Domain 1]
Add spark.core::IGraphicElement to cache for [Domain 1]
Add spark.components.supportClasses::GroupBase to cache for [Domain 1]
Add org.mxhero.console.frontend.presentation::Dashboard to cache for [Domain 1]
Add object 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.MainView6._MainView_NavigatorContent2.SkinnableContainerSkin58.contentGroup.Dashboard60' to [Context(FlexConfig{MainContext})]
Add org.mxhero.console.frontend.presentation.component::DashboardControlBar to cache for [Domain 1]
Add org.mxhero.console.frontend.presentation.component::DashboardView to cache for [Domain 1]
Add object 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.MainView6._MainView_NavigatorContent2.SkinnableContainerSkin58.contentGroup.Dashboard60._Dashboard_DashboardControlBar1' to [Context(FlexConfig{MainContext})]
Add spark.components::Label to cache for [Domain 1]
Add mx.controls::LinkBar to cache for [Domain 1]
Add object 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.MainView6._MainView_NavigatorContent2.SkinnableContainerSkin58.contentGroup.Dashboard60.viewStack' to [Context(FlexConfig{MainContext})]
Add org.mxhero.console.frontend.infrastructure::NavigatorModule to cache for [Domain 1]
main.login:exit
main
main.dashboard:firstEnter
main.dashboard:everyEnter
waypointChange main.dashboard
main.dashboard
main.dashboard.policies:firstEnter
main.dashboard.policies:everyEnter
Is this related to the viewstack and how they work? I am using in the second waypoint a linkbar with the viewstack as dataprovider, is that messing around?
Cheers

mmarmol80
mmarmol80Author
Known Participant
October 14, 2010

Well after looking and looking  the problem was that when a child form the viewstack is loaded and if that child is a waypoint with another viewstack, automatic redirection will take place. I solved it changing loading policies to auto for viewstack.

Any inside about this will be helpful to understand it better.

Cheers

mmarmol80
mmarmol80Author
Known Participant
October 14, 2010

Well, I keep having problems managing this, If I have a waypoint for a viewstack that has a child that is a viewstack with another waypoint. For some reason when first viewstack is loaded the start view point is the child that is a viewstack to.

main [viewstack and waypoint]

main.child [child]

main.otherchild [child]

main.viewstackchild [child that is a viewstack and has a waypoint]   (*******This one gets called when main is show********)

main.viewstackchild.content [child] (****** because main.viewstackchild this one is showed ********)

main.viewstackchild.othercontent [child]

Is there a way not to show the content until is really called? the selected index of main is changed by the navigator support.