Add Info message from UI page in Agent Workspace

Iveta Prazakova
Mega Expert

Hello,

we have UI action "Create task" on incident that opens UI page with mandatory fields. When user push OK, task is created and we use gs.addInfoMessage in the UI page to show information that the task was created. This works in classic UI, but not in Agent Workspace.

Do you know how to show message in agent workspace from UI page? I'm able to show message from UI action in workspace client script:

 g_modal.showFrame({
        title: "Create Task",
        url: url,
        size: "lg",
        height: 500,
        callback: function() {
            g_form.reload();
            g_form.addInfoMessage('Task ... was created');
        }
    });

But I would need the task number from the UI page. Is it possible to send parameters from UI page to UI action?

4 REPLIES 4

Alok Gupta5
Tera Guru
Tera Guru

Hello,

You can use gs.info().

 

Regards,
Alok Gupta 

Mohith Devatte
Tera Sage
Tera Sage

Hello,

I had the exact requirement and i called a script include from the workspace client script which can return my value.

In your case please use a script include and call it using glide ajax and return the task number by glide recording to that table in script include and use it in info message

Please mark my answer correct if it helps you 

Hello Mohith,

Thank you, it should work, I will try it.

It would be better to have the possibility to send parameters (task number) from UI page to UI action, but it seems that it is not possible.

Hi Iveta,

I am facing the same issue, and I need the UI page for filtering some dependent reference fields as I am currently using g_modal.showFrame(). And this cannot be achieved using g_modal.showFields(). Hence from my UI page I need to display an info message with a Greg to the record created, clicking on which should open the new record in a tab within the workspace.

Could you please advise if you were able to fix your issue.

 

Thanks!