Skip to Content
author's profile photo Former Member
Former Member

UsingjQuery.sap.includeScript().then() in HCP Firori Launchpad

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!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 16, 2016 at 08:45 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.