How to receive parameters from g_modal.showFrame in Ui Page script

MarinaL
Tera Contributor

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!  

7 REPLIES 7

Same issue here.

Peter Xiang
Tera Expert

same issue, anyone have ideal?

aasch
Kilo Sage

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}.