The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to open incident form's custom view inside a modal component in ui builder for service operation

Debasis Pati
Tera Guru

I have a declarative action called on Hold and i have created a cutom view in incident table called hold and i have added some releavnt fields on that hold view now i want whenever i click on my on hold declarative action my modal should open the incident form in hold view.

How i can achieve this.
i have already created declarative action and it also successfully opens the modal as well.
I know we can add the form component but it is showing me component is not configured for the form component i use.
Please advise how i should achieve this?

Regards,
Debasis

4 REPLIES 4

Mark Manders
Mega Patron

You have to create an 'on hold' modal for it, so it shows that specific modal. 

'Views' are for the core platform. The workspace is, in fact, a view on its own. So calling a view within a view isn't going to work.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hey Mark,

What i want replicate is just like resolve declarative action when clicked it opens a view as i have checked.
I want to do the same for on hold button so that whatever the related fields for holding an incident needed I will show them up and will proceed further.
and whatever I will write ui policy that will work for the view.
can you guide me here?

Mark Manders
Mega Patron

Did you check how the resolve button is getting the fields? Did you specify the client action needed for this (sys_declarative_action_payload_definition)? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

{
"route": "sowformmodalv2",
"fields": {
"table": "{{table}}",
"sysId": "{{sysId}}",
"title": "",
"view": "sow_incident_resolve_modal"
},
"params": {
"saveLabel": "Resolve",
"isGFormSave": true,
"setFieldOnLoad": {
"state": 6
},
"setFieldOnSave": {
"state": 6
},
"onclickAppseeEvent": "Click Incident Resolve Modal Action",
"modalTitle": "Resolve"
}


this is the payload for resolve declarative action and this looks like a generic because i could not find a specific modal for it they might have created some generic functionality for the modals i feel.

I am very new to ui builder so its getting confused for me to achieve this can you please guide me on this?