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

Odata model cannot be created

$
0
0

Hi there,

 

in my application (running on NW 7.40 AS Java) I'm creating a model via

 

// Create tasks.svc model
var tasksSvcURL = "/bpmodata/tasks.svc";                       
var tasksODataModel = new sap.ui.model.odata.ODataModel( tasksSvcURL, false);

 

This is working fine.

 

Now we want to make the application accessible from outside our network.

 

So the new URL won't be http://<saphost>:<port>/<sapui5 application>, but https://<external_url>/<sapui5 application>.

In net scaler we replace then "https://<external_url>" with "http://<saphost><port>/"

 

From outside the network it's working fine.

But if I call my application via https://<external_url>/<sapui5 application>from inside the network, I receive the following error:

"Uncaught TypeError: Cannot read property 'dataServices' of undefined".

 

This happens when the model is created (line 4 in the code above).

What could be the reason for this behavior?

 

Thanks in advance!

 

Best regards,

Thorsten.


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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