Object page [ProgramDetails page] makes an entity call by default whenever loaded. We navigate from this page to another page in 2 column layout, once the navigation occurs both the pages reloads the data and make necessary calls. But the object page entity call is overwritten and unable to pass correct parameters.
Problems:
- Can I restrict the reload and use the same session for first page?
- Can I define the parameter name in entity call url? ex: original call GET Program (ID=b73c75c2-a52f-4948-914e-36a08f534b09)?$select=ID,description&$expand=DraftAdministrativeData($select=DraftIsCreatedByMe,DraftUUID),type($select=id,name)
current call happening in first page when second page navigation occurs GET ProgramCycles(b73c75c2-a52f-4948-914e-36a08f534b09)?$select=ID,description&$expand=DraftAdministrativeData($select=DraftIsCreatedByMe,DraftUUID),type($select=id,name)
In the url, can I modify it to pass it in the below format for params (ID=xxx) instead of (xxx)
The pattern and navigation is defined in the manifest directly
Object page [ProgramDetails page] makes an entity call by default whenever loaded. We navigate from this page to another page in 2 column layout, once the navigation occurs both the pages reloads the data and make necessary calls. But the object page entity call is overwritten and unable to pass correct parameters.
Problems:
- Can I restrict the reload and use the same session for first page?
- Can I define the parameter name in entity call url? ex: original call GET Program (ID=b73c75c2-a52f-4948-914e-36a08f534b09)?$select=ID,description&$expand=DraftAdministrativeData($select=DraftIsCreatedByMe,DraftUUID),type($select=id,name)
current call happening in first page when second page navigation occurs GET ProgramCycles(b73c75c2-a52f-4948-914e-36a08f534b09)?$select=ID,description&$expand=DraftAdministrativeData($select=DraftIsCreatedByMe,DraftUUID),type($select=id,name)
In the url, can I modify it to pass it in the below format for params (ID=xxx) instead of (xxx)
The pattern and navigation is defined in the manifest directly
Share Improve this question asked Mar 3 at 0:35 SindhuSindhu 11 Answer
Reset to default 0I am not quite sure, if I understood your scenario completely.
You click on a ListItem in the SingleColumn View, this triggers a navigation and the FCL to open the second column. But in your case both views are reloaded not only the new view?
The DemoKit Sample Flexible Column Layout with Routing and One Initial Column shows quite well how the FCL should work. Maybe it helps if you check your solution for these steps:
define routes and targets in the manifest
make sure that the onRouteMatches are triggered only, if the view should reload. e.g. in Detail.controller :
this.oRouter.getRoute("detail").attachPatternMatched(this._onProductMatched, this); this.oRouter.getRoute("detailDetail").attachPatternMatched(this._onProductMatched, this);
pass the correct parameters in the URL e.g. "/detail/b73c75c2-a52f-4948-914e-36a08f534b09/TwoColumnsMidExpanded" for route pattern "detail/{product}/{layout}"
bind the view in the onRouteMatched event to "ProgramCycles(Your_ProductId_Here)?$select=ID,description&$expand=DraftAdministrativeData($select=DraftIsCreatedByMe,DraftUUID),type($select=id,name)"
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745113520a4611987.html
评论列表(0条)