UI page pop up show list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi ALL
I am trying to create one ui page which will pop up once the user select the configuration item value in catalog variable the ui page will pop-up and shows all incident which is having those have selected configuration item I am using Iframe to get this. But what is happening the sys_id is some how not going to the ui page and it is not rendering the result I want.
BELOW IS MY CLIENT SCRIPT AND UI PAGE SCRIPT
UI PAGE SCRIPT--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @keshav77 ,
The issue is with how you’re retrieving the value in the UI Page. When you use dialog.setPreference('ci_sys_id', newValue), the value is not accessed with RP.getWindowProperties().get(). Instead, it becomes available as a Jelly variable with the prefix jvar_.
So instead of trying to evaluate it with:
you should simply reference it like this:
So just replace all references to ci_sys_id with jvar_ci_sys_id in your UI Page. That will fix the problem, and your sys_id will be passed correctly to the iframe.
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.