cancel
Showing results for 
Search instead for 
Did you mean: 

Openui5 Googlemaps in SAPUI 1.28 Templates on WEBIDE

Former Member
0 Kudos

Hi,

We need implement the openui5 googlemaps library on our project. The project git, http://jasper07.secondphase.com.au/openui5-googlemaps/ , has all files and the examples, and we made an example that works perfect; but in this project, the library is declared on the index.html file with JS, but in the Worklist template SAPUI5 1.28 on WEBIDE, this project dont have this file anymore.

How we declare the library and which files should use.

Best regards,

Johnny

Jasper Git Project

WEBIDE SAPUI5 1.28 Worklist Template

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor
0 Kudos

Johnny,

Don't you have everything inside folder webapp? It just moved into a folder.

Former Member
0 Kudos

Hi Kris,

I moved folder inside to webapp folder, but additionally in te Component.js file, at end, I put the sentences:


jQuery.sap.require("TestSAPUI5128/moment/moment");

sap.ui.getCore().loadLibrary("openui5.googlemaps", "../openui5/googlemaps/");

In this moment all it's OK en WEBIDE

But, when deploy on the SAPUI5 Abap repository, with SAPUI 1.28, The application does not work and shows the following errors:

The folder structure it's different and was load moment resource, the openui5.googlemaps resource was not found. The error is:

2016-02-01 12:39:29 Error - found in negative cache: 'TestSAPUI5128/Component.js' from undefined/TestSAPUI5128/Component.js: Error: failed to load 'openui5/googlemaps/library.js' from openui5/googlemaps/library.js: 404 - NOT FOUND

Previously, this error is show:

2016-02-01 12:39:28 registerResourcePath ('openui5/googlemaps', 'openui5/googlemaps/') -  sap.ui.ModuleSystem

abap.js:2 GET http://XXXXXXXXXXX:8000/sap/bc/ui5_ui5/ui2/ushell/shells/abap/openui5/googlemaps/library-preload.jso... 404 (NOT FOUND), when I think that the correct path that returns the function is the BSP path:

http://XXXXXXXXXXX:8000/sap/bc/ui5_ui5/sap/ztestsapui5128/openui5/googlemaps/library.js



Best regards,

Jonny

0 Kudos

Hi,

the new template for 1.34 - planned for release end of february 2016 - will contain an option to generate the application without FLP dependencies. In this case you get an index.html to directly launch the app

regards Thomas

Former Member
0 Kudos

Hi Thomas,

For our installation is not possible use this template, because we deploy on Abap Repository and disponible version is 1.28.28.

The workaround was to use standard library from Google, but I'll wait another developer solution.

Best regards,

Johnny

Answers (0)