Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

OnBeforeRendering not getting called without Hash Change navigation

$
0
0

The onBeforeRendering and onAfterRendering is not getting called when directly adding the pages to detail aggregation without hash change.

 

Here is the code:

 

//Display the  Update view on click of Update List Item in Master

 

onChangePress : function(oEvent) {

 

  this.getRouter().myNavToWithoutHash({

  currentView: this.getView(),

  targetViewName: "com.xyz.qwe.view.Update",

  targetViewType: "XML"

  });

 

//Navigation method in MyRouter

 

myNavToWithoutHash: function(oOptions) {

  var oSplitApp = this._findSplitApp(oOptions.currentView);

 

 

  // Load view, add it to the page aggregation, and navigate to it

  var oView = this.getView(oOptions.targetViewName, oOptions.targetViewType);

  oSplitApp.addPage(oView, oOptions.isMaster);

  oSplitApp.to(oView.getId(), oOptions.transition || "show", oOptions.data);

  }

 

Any kind of help is appreciated.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>