Jelly UI Page - less than / greater query

nhague
Tera Contributor

Hi All

I'm trying to write a UI page to do a glide query with a 'greater than' or 'less than' operator but the xml doesn't like it !

How do i do .....
gr.addQuery("priority", ">", "3");
or ...gr.addQuery("priority", "<", "3");

I'll also need to run queries by date also.. something like...
gr.addQuery('u_time', '<', start);

I've had a look at using ${AMP}lt; and ${AMP}gt; but can't seem to get the syntax correct.
(http://wiki.servicenow.com/index.php?title=Extensions_to_Jelly_Syntax#Less_Than)

UI Page XML attached.

Hoping that this is a very quick syntax issue.

Thanks in advance.

6 REPLIES 6

nhague
Tera Contributor

Thanks Neetu


CapaJC
ServiceNow Employee
ServiceNow Employee

To have it work for either Boolean value of glide.ui.escape_text, you could use the Jelly substitution "${LT}" instead of "<".