calling ui page on workspace

Utkarsha
Tera Contributor

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,

 

4 REPLIES 4

Community Alums
Not applicable

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 

 

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

Community Alums
Not applicable

Hi @Utkarsha  ,

Can you please share the scripts which you are using.

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

    });
}