Get paramter sysparm_query from URL using jelly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2016 11:08 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2016 11:11 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2016 11:34 AM
10:33:45.120: JVAR: jvar_query=
is empty

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2016 12:01 PM
Thanks for the response. Have you tried Aditya's method yet?
Also, where is this Jelly code being used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2016 12:26 PM
yes, without success