How to call/use a recordActionField, recrodActionItem in a button click.

Hi,

I have an interface where I have few buttons. These buttons I have created using a a!buttonArrayLaoyout, a!buttonWidget.

Now, when the user clicks on one of the button, I need to calls a "recrodActionItem".

Can someone advise how I can do this.

Thanks

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi

    you can use this code to call record action button

      a!gridColumn(
              label: "Actions",
              value: a!recordActionField(
                actions: {
                  a!recordActionItem(
                    action: 'recordType!{601cd09c-9034-4f53-b4d3-8cdfd3116910}RMM Product.actions.{0b2a53d0-356e-4d90-906d-da522d48e9a8}Update',
                    identifier: fv!row['recordType!{601cd09c-9034-4f53-b4d3-8cdfd3116910}RMM Product.fields.{4fba574e-b990-4f92-80c6-6fdbcbf14c4b}id']
                  ),
                  a!recordActionItem(
                    action: 'recordType!{601cd09c-9034-4f53-b4d3-8cdfd3116910}RMM Product.actions.{35299b39-6699-4d2c-b4ca-f9911975cba8}Delete',
                    identifier: fv!identifier
                  )
                },
                style: "MENU_ICON",
                display: "ICON"
              ),
              align: "CENTER",
              width: "NARROW"
            ),

Reply
  • 0
    Certified Senior Developer

    Hi

    you can use this code to call record action button

      a!gridColumn(
              label: "Actions",
              value: a!recordActionField(
                actions: {
                  a!recordActionItem(
                    action: 'recordType!{601cd09c-9034-4f53-b4d3-8cdfd3116910}RMM Product.actions.{0b2a53d0-356e-4d90-906d-da522d48e9a8}Update',
                    identifier: fv!row['recordType!{601cd09c-9034-4f53-b4d3-8cdfd3116910}RMM Product.fields.{4fba574e-b990-4f92-80c6-6fdbcbf14c4b}id']
                  ),
                  a!recordActionItem(
                    action: 'recordType!{601cd09c-9034-4f53-b4d3-8cdfd3116910}RMM Product.actions.{35299b39-6699-4d2c-b4ca-f9911975cba8}Delete',
                    identifier: fv!identifier
                  )
                },
                style: "MENU_ICON",
                display: "ICON"
              ),
              align: "CENTER",
              width: "NARROW"
            ),

Children