I have a use case involving a read-only grid, where the last column contains a recordActionField. My requirement is for some actions within this field to open in a dialog box, while others should open in the same tab.
Currently, the recordActionItem does not permit specifying the behavior for how each action opens. I am limited to using the configuration settings of the recordActionField for all actions. Is there a solution to address this issue?
Discussion posts and replies are publicly visible
I am not aware of an option to configure this for each action individually. I think that my UX expert would also not be happy when actions behave differently.
For an action that simply involves toggling a flag or two, using an entire page might be excessive. A dialog box would be a more practical option, in my opinion. Conversely, editing a large form should be handled on the same tab rather than in a dialog box.
We can do this using two a!recordActionField and if condition. See the sample code for reference:
a!gridColumn( label: "Action", value: if(fv!identifier = 1, a!recordActionField( actions: { a!recordActionItem( action: recrod Type Action, identifier: fv!identifier, ) } ), a!recordActionField( openActionsIn: "SAME_TAB", actions: { a!recordActionItem( action: recrod Type Action, identifier: fv!identifier, ) } )), )
You can configure an interface in the process model. So when you will trigger the recordAction, the screen will pop-up as a dialogue box.