Problem Cancel action button, replicate it to incident.

Community Alums
Not applicable
Spoiler
I have a requirement, that I need some help with. I need to create an action button in the incident form that follows the same modal principle as the ootb cancel action button for Problem. I need the same modal to be displayed while these actions should happen on the record:

State= Closed, Resolution code = Canceled (created that option) , and resolution notes/worknotes updated based on the input given on the canceled reason. (see attachment)

I already tried to code this based on what this ootb scripts:

UI script API name: ProblemModalUIHelpers
UI action name: Cancel 

Can you please help me find a solution for this?  

If you need more information please do not hesitate to ask.







8 REPLIES 8

Ramz
Mega Sage

So the current OOB comes from sys_ui_view.LIST. Type your current oob modal name and under form section you will be able to see the form for popup.

 So add code in ProblemModalUIHelpers to include incident table and create a view for incident in sys_ui_view.LIST

 

Please mark my answer correct/helpful if it resolved your query

Hi @Community Alums ,

You will find 'ProblemModalUIHelpers' in scrip include.In the script include it will be calling the pop up from sys_ui_view.LIST

In sys_ui_view.LIST search for the name as cancel you will find the oob pop up fields there.

 

Please mark my answer correct/helpful if it resolved your query

Community Alums
Not applicable

Hello @Ramz ,
Under sys_ui_view.list I am not able to find ProblemModalUIHelpers by typing this name in sys_ui_view.list table. 
Are you sure that you can find it there? Could you please provide more details?
Kind regards

Community Alums
Not applicable

Hello @Ramz,
I have tried to apply what you discussed, but nothing happens when I click the UI action button created.
I will post the scripts created, I am probably missing something.