Is it possible to show a custom modal from list view in agent workspace?

Sameer15
Kilo Explorer

I know we can edit multiple items from the list in Workspace. Is it possible to show a modal in the list view in the agent workspace? In below if I click on Escalateee, I want to open a modal view and send the input from modal to some script which process it.. Also is it possible to edit the Fields in the Edit button?

find_real_file.png

10 REPLIES 10

Hi @Maik Skoddow ,

 

The UI Action is only works when a particular incident is opened such as below. But It doesn't work when I select Multiple incident in the list view. When I try to create a List action and choose the particular UI component, it doesn't shows up..

find_real_file.png

 

Hi @Sameer ,

sorry for my misunderstanding. You are right: UI Actions only apply to form view. For list view you have to define so-called Action Assignments (table sys_declarative_action_assignment)

The problem is, that only for "Implemented as" = "Server script" you can enter JavaScript code. But for "Implemented as" = "Client Action" you just can select one of the predefined Actions.

So I'm afraid the answer is "no" - you cannot create a modal on list views.

But never mind. This only applies to all releases including Paris. From Quebec on Workspace is a legacy application and will be replaced by a new UI experience.

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Hi @Sameer ,

Did my reply answer your question?

If so, please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

If not, please tell me what you are still missing!

Kind regards
Maik

Is there a way to show alert message when approver approves a record from list view in workspace. I tried onCellEdit Client script in now UI it is working but in workspace it is not working.

Hi @Maik Skoddow 

I've followed your tutorial and it works fine with UI Action on a form. But when I try to apply the same logic with a List Action (in my custom workspace) it works only once when the user log in, but after refreshing the page the modal doesn't appear anymore.

 

The console shows this error :

caro234_0-1715768399804.png

SCRIPT:EXEC Error while running Client Script "GlideScopedScript": TypeError: Cannot read properties of undefined (reading 'showRecordList')

 

I use scoped application, and my Registered Scripting Modal is in the same scoped application.

 

 

Thanks.