You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Web Application - RoutingChanged Event
Signaled when the routing framework successfully matches a route with the current URL path component
Member of Web Application (PRIM_WEB.Application)

Details


The RoutingChanged event is signaled when the routing framework successfully matches a route with the current URL path component and prepares the appropriate views in the appropriate view containers.

Example


The following code snippet shows the handling of the RoutingChanged event. Specifically, spotting the use of the "/SignIn" path to trigger the Sign-in dialog.
Evtroutine Handling(#SYS_WEB.RoutingChanged)
#sys_appln.CloseAllDialogs
If (#sys_web.Routing.ActivePath = #SignInRoute.Path)
#IsSignedIn := false
#ViewContainer.Clear
#SignIn.ShowForSignIn
Endif
Endroutine

See also

All Component Classes
Technical Reference

  • No labels