Adding an element in the dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Looking for support in adding an element with html code that shows current date & time either at header or as another widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
okay @balajing,
my PDI is hibernating, so I cannot validate from my side as of now, could you please check whether the HTML elemtn contains the source code icon?
if so, then you might insert your code into it..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
my PDI is back and available so I played around @balajing,.
1. Created an UI Page, called "dashboard_clock":
<html>
<head>
<meta http-equiv="refresh" content="5" />
<style>
noscript, #no_js_message, .no-js-message { display:none !important; }
body { margin:0; font-family: Arial, sans-serif; display:flex;
align-items:center; justify-content:center; height:100vh;
font-size:2em; font-weight:bold; }
</style>
</head>
<body>
${gs.nowDateTime()}
</body>
</html>
2. Added this to the source code on the HTML element:
<p><iframe style="width: 100%; height: 120px; border: 0;" title="Clock" src="/dashboard_clock.do" sandbox=""></iframe></p>
Like this:
When I am in the edit mode it seems to partially work but in the preview, it's empty:
But I believe you can get inspired from this and do it better than me.
Important notes:
- the dashboard_clock is called in the iframe, so be sure you have the correct name,
- It might be a good idea to first try on some dummy report/dashboard or in your PDI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
one more thing, the UI page seems ok:
It's more how or if you can display it under the dashvboard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago