Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3132

Re: Routing and Naivgation issue

$
0
0

Hi Jammie,

 

I have onRoutematched for detail view, in which I am publishing the event and in the onLineItempresses event I set view, so you mean to say that I move the event publish in Detail view to onlineitem Pressed event???

 

My Navigation is working fine.. but binding is not working...

 

Apart from that I do have onRouteMatched for detail2 Controller too with the below Code..

 

"

onRouteMatched: function(oEvent) {
var oParameters = oEvent.getParameters();

 

 

jQuery.when(this.oInitialLoadFinishedDeferred).then(jQuery.proxy(function() {

 

 

// When navigating in the Detail page, update the binding context
if (oParameters.name === "detail2") {
var sEntityPath = "/" + oParameters.arguments.entity;
this.bindView(sEntityPath);
} else {
return;
}
}, this));

 

 

if (oParameters.name === "detail2" && jQuery.device.is.phone) {
this.getRouter().myNavToWithoutHash({
currentView: this.getView(),
targetViewName: "zfin.view.Detail2",
targetViewType: "XML",
transition: "slide"
});
}

},"

kindly advise me if any changes needed..

Best Regards

MAnoj


Viewing all articles
Browse latest Browse all 3132

Trending Articles



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