Skip to Content
0
Former Member
Jan 09, 2014 at 11:14 AM

Navigation from XML View to JS View

55 Views

Hi All -

I am facing a roadblock in my UI5 Application. I have a 'Button' in my Main View and would like to navigate to Detail View upon click of this button. I am able to do this only when I create the Detail view as an XML view. However I do not know how to navigate if I create the Detail View as JS View.

Using this to navigate to XML View: (From Main View Controller)

handleCreate : function (evt) {

var context = evt.getSource().getBindingContext();

this.nav.to("Customer", context);

},

What should be the equivalent code in order to navigate to a JS View. Please note that the Main View is an XML View and the new View which I need to navigate is a JS View.

Thanks,

Vijay