How to receive parameters from g_modal.showFrame in Ui Page script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2024 05:05 AM
Hello everyone!
I call UI page from UI action in the csm workspace:
UI Action workspace client script:
function onClick(g_form) {
var ui_page_id = 'sys_id';
var url = '/ui_page.do?sys_id=' + ui_page_id + '&sysparm_case_id=' + g_form.getUniqueValue();
alert(url);
g_modal.showFrame({
url: url,
title: 'name',
size: 'xl',
height: 500
});
}
I added sysparm_case_id parameter with currect case sys_id to the url to get it in the UI Page
I tried to get it this way, but it doesn't work
<j:set var = "jvar_case_id" value = "${sysparm_case_id}" />
but if i'm trying to get "${sys_id}" i will receive the ui page sys_id
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2024 12:08 PM
Same issue here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
same issue, anyone have ideal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey,
you need to use the RP (RenderProperties) object, like so:
<g:evaluate var="jvar_case_id" expression="RP.getParameterValue('sysparm_case_id')" />
After that you can use the value with ${jvar_case_id}.