Skip to Content
0
Aug 18, 2016 at 08:39 AM

How to add external js file in component.js ?

3096 Views

Hi,

Iam working in sap ui5 , i am facing problem while adding the external js file in component.js .But its not finding the files.

Below shows the folder structure

jQuery.sap.includeScript("sap/ui/demo/masterdetail/util/Utility");

jQuery.sap.includeScript("sap/ui/demo/masterdetail/util/JOB");

jQuery.sap.includeScript("sap/ui/demo/masterdetail/util/globalvariables");

jQuery.sap.includeScript("sap/ui/demo/masterdetail/util/DecodeWorker");

jQuery.sap.includeScript("sap/ui/demo/masterdetail/util/exif");

As shown above i am trying to add thes files externally. I am getting an error as shown below.

Attachments

util files.PNG (14.1 kB)
util folder.PNG (5.3 kB)