Get paramter sysparm_query from URL using jelly

sergej11221
Mega Contributor

I want to get the sysparm_query value from this url: nav_to.do?uri=/ui_page.do%3Fsys_id%3D222a312fdbb9220065dfd001cf96191e%26sysparm_query%3Dstate%253D1

by using jelly. I used:

<j:set var="jvar_query" value="${sysparm_query}" />

and

<j:set var="jvar_query" value="${RP.getParameterValue('sysparm_query')}" />

In both cases I can't get the value.

14 REPLIES 14

Chuck Tomasi
Tera Patron

How do you know you don't have the value?



Right after you do either one of these, try this:



<g:breakpoint />



Now to go System Diagnostics> Debug Log. Run your UI page (or macro again) to invoke your Jelly code and see the list of variables in the debug output at the bottom of the form.


10:33:45.120: JVAR: jvar_query=



is empty


Thanks for the response. Have you tried Aditya's method yet?



Also, where is this Jelly code being used?


yes, without success