简体   繁体   中英

Dashboard on WSO2DAS

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.

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;
  };

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM