Adding a Timeline page to a Dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 11:33 AM
I am trying to add a TimeLine Page to a Dashboard. I have made an UI Page for the Timeline and have tried several of the Java Scripts suggested to add a UI Page to a Dashboard and have been unable to add it.
This is the script that I am using.
function sections() {
return {
'Project Inflight Timeline': { 'uiPageName' : 'Projects Inflight'},
};
}
function render() {
var uiPageName = renderer.getPreferences().get("uiPageName");
return renderer.getRenderedPage(uiPageName);
}
function getEditLink() {
var uiPageName = renderer.getPreference('uiPageName');
return 'sys_ui_page.do?sysparm_query=' + encodeURIComponent('name=' + uiPageName);
}
I have also tried to use a render_gadget UI page
but this is not working either.
HTML: <?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<iframe id="feedframe" src="show_schedule.do?sysparm_page_schedule_type=projects_inflight&sysparm_nostack=true" frameborder="0" style="height:600px; width:100%;"></iframe>
</j:jelly>
function sections() {
return {
'Project Inflight Timeline' : { 'type' : 'Projects_Inflight' }
};
}
function render() {
var type = renderer.getPreferences().get("type");
var gf = new GlideForm(renderer.getGC(), "render_gadget_" + type, 0);
gf.setDirect(true);
gf.setRenderProperties(renderer.getRenderProperties());
return gf.getRenderedPage();
}
function getEditLink() {
return "sys_ui_page.do?sysparm_query=name=render_gadget_" + renderer.getPreferences().get("type");
}
Can anyone tell me what I am doing wrong?
Regards
Holly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 02:03 AM
Hi Hurbanus,
Do you have an answer to this already?
I am requesting for something similar. We already do have an existing UI Page on the dashboard, that using this code:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<iframe id="feedframe" src="show_schedule_page.do?sysparm_page_schedule_type=discovery_timeline&sysparm_nostack=true" frameborder="0" style="height:600px; width:100%;"></iframe>
</j:jelly>
However, I cannot locate the actual timeline (?!). Any help on this?
Regards,
Jaap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 01:19 PM
Hi Jaap
Discovery Timeline is one of the Schedule Pages. You can navigate to it by typing Schedule Pages in the Field Navigator. The actual page won't show up anywhere until you add the page to an application or a Dashboard. On the UI Page you should have a button that will let you preview the Discovery Timeline.
You may want to create a Widget that will allow you to select the Timeline to be added to a Dashboard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 12:53 AM
Hi Hurbanus,
Makes sense! I did not find out that first part.
However, it does seem quite complex to me to find out how to code this thing. So for now, I'll work on a workaround. But at least I understand the concept now. Thanks!
Regards,
Jaap