Skip to Content
0
Former Member
Jul 20, 2016 at 12:11 PM

How to instantiate remote views?

34 Views

Hi,

I am trying to instantiate a view which is present in different project and different domain. But it is failing by giving XMLHttp request error due to cross-origin issue.

Example:

jQuery.sap.registerModulePath('other', 'http://xyz.com:8080');

new sap.ui.core.mvc.JSView({

viewName : "other.myView",

height : "100%"

});

Please help me to resolve this issue.

Regards,

Harish P