calling ui page on workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 02:44 AM
Hello All,
I have to show 'assessment_take2' this ui page on workspace for sn_vdr_risk_asmt_internal_assessment this table..
I am using g_modal.showFrame..but i am getting error as 'There was an unexpected failure with this assessment, invalid type provided'....could anyone please suggest any better approach to display this UI page?
All suggestions are welcome!
Many Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:43 AM
Hi @Utkarsha ,
You can use UI action to call the UI page in workspace:
this is the syntax
var ui_page_id = '<sys_id_of_your_ui_page>';
g_modal.showFrame({
url: '/ui_page.do?sys_id=' + ui_page_id,
title: 'Attachments',
size: 'xl',
height: 500
});
reference: UI page on Agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:50 AM
Hi @Community Alums ,
Thank you for responding...I am using the same code but still getting this error message when i am clicking on ui action 'There was an unexpected failure with this assessment, invalid type provided' Is there anything else I'm missing on this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:57 AM
Hi @Utkarsha ,
Can you please share the scripts which you are using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:59 AM
I am using below workspace client script code-
function onClick(g_form) {
var ui_page_id = '012918babfb001007a6d257b3f073996';// sys_id of assessment_take2 UI page OOB
g_modal.showFrame({
url: '/ui_page.do?sys_id=' + ui_page_id,
title: 'Take third-party risk assessment',
size: 'xl',
height: 500
});
}