cancel
Showing results for 
Search instead for 
Did you mean: 

How to instantiate remote views?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This might help you -

Thanks and regards,

Chandan Kalita

SergioG_TX
Active Contributor
0 Kudos

I do not think this may be possible as you said this is on another domain....  sounds like a security issue ,,,

someone else may have a better attempt but sounds very unlikely that this is possible