Related action in read only grid

Hi All,

I have a scenario where i have to populate related action in one of the column in read only grid. For instance, the row with identifier 1 i will populate related action for identifier 2 in that specific column. The issue am facing is that even though i can open that related action with identifier 2, the name of related action is still showing like related action of identifier 1, 

Note: Am only facing this issue when am using a!recordData as source but I could get desired result when am using a!query record type.

You can try this scenario making one value in column as a!recordActionItem(action: record action, identifier: fv!identifier+1

Please suggest if am missing anything here.

Thanks in advance!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi 
    Please try below logic in Interface

    a!cardLayout(
      contents: a!gridField(
        data: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request',
        columns: {
          a!gridColumn(
            label: "Request ID",
            sortField: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{c40cd374-cceb-4121-86ce-7375ae9c0c4d}id',
            align: "CENTER",
            value: a!recordActionField(
              display: "ICON",
              actions: a!recordActionItem(
                action: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.actions.{bf974385-c2a4-4c1d-8adb-b712ae80282f}updateRequest',
                identifier: fv!row['recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{c40cd374-cceb-4121-86ce-7375ae9c0c4d}id']
              )
            )
          ),
          a!gridColumn(
            label: "Description",
            sortField: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{efca005e-588c-4c84-b7e9-d2d972fa9c74}description',
            value: fv!row['recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{efca005e-588c-4c84-b7e9-d2d972fa9c74}description']
          )
        },
        validations: {},
        refreshAfter: "RECORD_ACTION",
        showSearchBox: true,
        showRefreshButton: true,
        recordActions: {
          a!recordActionItem(
            action: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.actions.{9fa223ca-faa8-4d94-bcca-1dae1b2f71a4}newRequest'
          )
        }
      ),
      shape: "ROUNDED",
      showShadow: true
    )

    Thank you.

Reply
  • 0
    Certified Senior Developer

    Hi 
    Please try below logic in Interface

    a!cardLayout(
      contents: a!gridField(
        data: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request',
        columns: {
          a!gridColumn(
            label: "Request ID",
            sortField: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{c40cd374-cceb-4121-86ce-7375ae9c0c4d}id',
            align: "CENTER",
            value: a!recordActionField(
              display: "ICON",
              actions: a!recordActionItem(
                action: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.actions.{bf974385-c2a4-4c1d-8adb-b712ae80282f}updateRequest',
                identifier: fv!row['recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{c40cd374-cceb-4121-86ce-7375ae9c0c4d}id']
              )
            )
          ),
          a!gridColumn(
            label: "Description",
            sortField: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{efca005e-588c-4c84-b7e9-d2d972fa9c74}description',
            value: fv!row['recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.fields.{efca005e-588c-4c84-b7e9-d2d972fa9c74}description']
          )
        },
        validations: {},
        refreshAfter: "RECORD_ACTION",
        showSearchBox: true,
        showRefreshButton: true,
        recordActions: {
          a!recordActionItem(
            action: 'recordType!{1e3f625b-dbca-4db6-969b-950bb182955b}AIS Request.actions.{9fa223ca-faa8-4d94-bcca-1dae1b2f71a4}newRequest'
          )
        }
      ),
      shape: "ROUNDED",
      showShadow: true
    )

    Thank you.

Children
No Data