Wednesday, 15 August 2012

javascript - UI5 routing doesn't instantiate a view -


There are some paths in my component. I want to navigate to the URL "URL / # / Reports" Here are my ways: Target: "idAppControl"}, {pattern: "menu", target: "menu", target archive: "[pattern:" ", name:" menu ", see:" menu " "Split container", target: "page", target control: "idAppControl", clear goal: correct, sub-route: [[Pattern: "Report"): "Reports", Name: "Reports" T / SFC ", name:" sfcsub ", see:" SFC Report ", Target Control:" IDSplit Container Control ", TargetAgrace:" MasterPage "}]}]

This is relative D to work, though This means that if I click on the menu item / report path then the "menu" view disappears. The problem is that the "splitcontainer" view is not loaded / instant. There is no DOM element. Crazy thing is, if I reload the page (with URL "URL / # / Reportes") I get the view of Split Container right.

Leading function for report path:

  sap.ui.core.UIComponent.getRouterFor (this) .navTo ("report", {to: "menu"} , BREplay);  

You set

  clearTarget: true,  

which removes the menu page from the app page aggregation. If you are using Neva Container and Split Container, then you should set a clear goal to the wrong because they create a navigation stack There are frequent pages in your aggregations and are required.

BR, Tobias


No comments:

Post a Comment