on 2016 Aug 16 7:34 AM
I'm trying to include googlemaps in sapui5
jQuery.sap.includeScript({
url: "https://maps.googleapis.com/maps/api/js?key=XXXX",
promisify: true
}).then(function() { ... } )
This Promise works fine when I run in hanatrial webide,
But when I deploy it to hana cloud platform it is not working. The error message it gives me is :
> InterceptService.js:1 Uncaught (in promise) TypeError: u.indexOf is not a function(…)
sap.ushell.cloudServices.interceptor.InterceptService._invokeFilters @ InterceptService.js:1
>jQuery.sap.includeScript @ InterceptService.js:1
> onAfterRendering @ Worklist.controller.js:37
So I open InterceptService.js , The code fragment in the library that produced this error is
{if(u.indexOf('/sap/fiori/../../')>0){u=u.replace('/sap/fiori/../../','/');}
I do use **HCP Portal Service** to produce HCP Fiori Launchpad Platform. How to fix this? What I did wrong?
Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.