Skip to main content
moeezs5513
August 1, 2024
Question

Enable varied behaviors for different actions within the recordActionField

  • August 1, 2024
  • 4 replies
  • 0 views

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?

4 replies

stefanhelzle0001
Brainy
August 1, 2024

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.

moeezs5513
August 1, 2024

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. 

August 2, 2024

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,
            )
          }
        )),
      )

prasantap0900
August 5, 2024

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.