GlideJellyRunner library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2019 07:36 AM
Good morning,
I have to create an interactive filter for a dashboard and install it as a widget.
Now, i have an existing filter that works on a date field.
function render() {
var table = renderer.getPreferences().get("table");
var field = renderer.getPreferences().get("field");
if(table) {
var jr = new GlideJellyRunner();
renderer.getRenderProperties().setDeferInlineScripts(false);
jr.setRenderProperties(renderer.getRenderProperties());
jr.setTwoPhase(true);
jr.setVariable('jvar_uid', randInt(100000, 999999) + '' + randInt(100000, 999999));
if(field)
jr.setVariable('jvar_field',field);
jr.setVariable('jvar_table',table);
return jr.runFromTemplate('interactive_date_filter.xml');
}
else {
// Default to NOOP
return 'Invalid widget type';
}
}
My problem is that i have to create a new filter that use reference or string and change the correct template into the method "runFromTemplate' but I'm not able to find a GlideJellyRunner library documentation on ServiceNow.
Can you help me about the documentation or my needs ?
Thanks in advance,
Domenico
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2019 08:18 AM
Hi,
Refer below link will help you,
https://hi.service-now.com/kb_view.do?sysparm_article=KB0596105
If my answer is worthy mark it as helpful and correct.
Regards,
Pratiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2019 11:33 PM
I thank you for the answer but it's not the solution.
My problem is that i don't know how to adapt
this
return jr.runFromTemplate('interactive_date_filter.xml');
to
line code for a text or reference field , but i'm not able to find any documentations
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 01:35 AM
I have exactly the same problem in return jr.runFromTemplate('cmdb_widget_iframe.xml')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2020 05:25 AM
was also looking on this,
so the mystery is solved it is a UI Macro name +'.xml'
for the whole filter build you can refer to this post