Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

I want to include d3 as a resource, but SAPUI5 on HANA cannot resolve it

Hi,

I have 2 javascript files in the same directory as the index.html file under WebContent running on HANA. But despite using

createContent : function(oController) {
jQuery.sap.require("d3");
jQuery.sap.require("d3.layout.cloud");

...

I get

GET http://54.72.75.155:8000/sap/ui5/1/resources/d3-dbg.js 404 (Not Found)

sap-ui-core-dbg.js:8103 GET http://54.72.75.155:8000/sap/ui5/1/resources/d3.js 404 (Not Found)

sap-ui-core-dbg.js:14438 Uncaught Error: failed to load 'd3.js' from /sap/ui5/1/resources/d3.js: 404 - Not Found

I also tried locating both these d3 javascript files the directory 'util' and added this

<script>
sap.ui.localResources("view");
sap.ui.localResources("util");
var app = new sap.m.App({initialPage:"testui5"});

...

This got the same error message.

So how do you use other javascript resources in your app?

Former Member
Not what you were looking for? View more on this topic or Ask a question