I've created a gadget on WSO2DAS, a graph of which can be seen independently. But When I'm trying to insert it into the dashboard I'm unable to see it. You can see the dashboard in the image but inserted gadget is not visible. Only setting and zoom in icons of it are visible.
Asked
Active
Viewed 167 times
1 Answers
0
Edit the following file:
(DAS_FOLDER)/repository/deployment/server/jaggeryapps/portal/extensions/components/gadget/index.js
Replace the resolveGadgetURL function with the code below:
var resolveGadgetURL = function (uri) {
uri = resolveURI(uri);
if (uri.match(/^https?:\/\//i))
{ return uri; }
uri = uri.replace(/^(..\/)*/i, '');
if (window.location.protocol === 'https:')
{ return 'https://localhost:' + server.httpsPort + context + '/' + uri; }
return 'http://localhost:' + server.httpPort + context + '/' + uri;
};

Moog
- 10,193
- 2
- 40
- 66

Yandy Perez Ramos
- 46
- 4