Ui builder open modal event mapping for declarative actions on same page.

Zirwa1
Tera Contributor

Hi,

I have 2 declarative actions on the same record, I want to trigger 2 different "open modal" events from each one of the actions. Currently it's opening both modals from one action. Does anyone know how I can achieve this? 

Thanks.

2 REPLIES 2

AyanshN
Tera Contributor

Hi @Zirwa1 , i m stuckking in same question.DO you have any idea regarding this now?

 

Zirwa1
Tera Contributor

@AyanshN So the action assignment you want to open in a modal should be implemented as "UXF Client action" and should have "specify client action" field and the record associated to that field should be a action payload definition. Add this below value in the "payload" field. 

{
"route": "{{route}}",
"fields": {
"table":"{{table}}"
},
"params": {
"sysId":"{{sysId}}"
}
}

Now on the open modal event, add "@payload.route" under Bind data to modal. like this

Zirwa1_0-1752082798390.png

Now go back to your action assignments and open their advanced views. In the action attributes section, "payload map" field, set "route" equal to your respective modal IDs.

Hope this helps.