Adding an element in the dashboard

balajing
Giga Contributor

Looking for support in adding an element with html code that shows current date & time either at header or as another widget

11 REPLIES 11

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?

glideFather_0-1793867508728.png


if so, then you might insert your code into it..

my PDI is back and available so I played around @balajing,.

 

1. Created an UI Page, called "dashboard_clock":

glideFather_0-1793869148490.png

 

<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:

glideFather_1-1793869298000.png

 

When I am in the edit mode it seems to partially work but in the preview, it's empty:

glideFather_2-1793869366487.png

 

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

 

 

one more thing, the UI page seems ok:

glideFather_0-1793869856792.png

 

It's more how or if you can display it under the dashvboard...

Is it possible to achieve my objective of showing the date on the dashboard without the ui_builder_admin role, since that role is required to create the UI page?

Hello @glideFather 

 

Still facing same issue despite of updating itScreenshot 2026-11-05 143414.png