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.