UI Action not working in agent workspace for dialog window

mr18
Tera Guru
Tera Guru

Created a UI Action on incident table to display popup for problem.

It is working in normal UI but not in Agent Workspace. Also, need to set the parent of problem to incident.

function showMyForm() {
    var sysID = g_form.getUniqueValue();

    //Create and open the dialog form
    var dialog = new GlideDialogForm('Create problem', 'problem'); //Provide dialog title and table name
    dialog.setSysID(-1); //Pass in sys_id to edit existing record, -1 to create new record
    dialog.addParm('sysparm_view', 'default'); //Specify a form view
    dialog.addParm('sysparm_form_only', 'true'); //Add or remove related lists

    dialog.setLoadCallback(function(iframeDoc) {
        // To get the iframe: document.defaultView in non-IE, document.parentWindow in IE
        var dialogFrame = 'default' in iframeDoc ? iframeDoc.default : iframeDoc.parentWindow;
        
        dialogFrame = null;
		
    });

    dialog.render(); //Open the dialog
	
}
6 REPLIES 6

Community Alums
Not applicable

Hi Mr,

Please verify if you checked the below check box

find_real_file.png

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Yes the box is checked but we have to write some code in order so that it works in workspace too

mr18
Tera Guru
Tera Guru

Still I am looking for some solution on this.

Glide DialogWindow not working in Agent workspace

Community Alums
Not applicable

Hello,

what replaces DialogWindow in Agent workspace ?