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

  • 0
    Certified Associate Developer
    in reply to Capt_Barbosa

    Corrected your code, Please verify in your interface
    For identifier we can directly pass fv!row "+1" is not required for identifier.

    a!gridField(
      emptyGridMessage: "No data available",
      data: a!recordData(
        recordType: 'recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}',
        filters: {
          rule!ACO_filterEqualsOrIn(
            field: 'recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{2d7edaf4-3e40-41c0-a89a-6f3995670e0e}',
            value: true()
          ),
          rule!ACO_filterEqualsOrIn(
            field: 'recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{259fe683-f6b2-40b5-a60a-d9f9dc27872e}',
            value: cons!RLM_LOOKUP_DATA_157
          )
        }
      ),
      columns: {
        a!gridColumn(
          label: "Loan Number Identifier",
          value: fv!row['recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{1f75d98b-f357-4136-82a7-bf333120f592}']
        ),
        a!gridColumn(
          label: "Loan number",
          sortField: 'recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{6a018376-f831-413a-af07-3cbbd02d619d}',
          value: a!recordActionField(
            actions: a!recordActionItem(
              action: 'recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.actions.{05cd73c9-ce7f-4dc4-8b3f-5d00258e9b6b}',
              identifier: fv!row['recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{1f75d98b-f357-4136-82a7-bf333120f592}']
            ),
            style: "LINKS",
            display: "LABEL"
          )
        ),
        a!gridColumn(
          label: "Related Loans Identifier",
          value: fv!row['recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{1f75d98b-f357-4136-82a7-bf333120f592}'] + 1
        ),
        a!gridColumn(
          label: "Related Loans",
          value: a!recordActionField(
            actions: a!recordActionItem(
              action: 'recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.actions.{05cd73c9-ce7f-4dc4-8b3f-5d00258e9b6b}',
              identifier: fv!row['recordType!{b4241a8a-8490-4326-9a66-74ae61f7935f}.fields.{1f75d98b-f357-4136-82a7-bf333120f592}']
            ),
            style: "LINKS",
            display: "LABEL"
          )
        )
      }
    )

  • Hi LakshmiRaja,

    Thanks for your response. Actually its nothing to do with +1 logic. I think i have confused everyone by adding +1 to the identifier for other column. 
    The reason i put +1 is to show that am giving different value as identifier other than the row identifier. The identifier can be any value, but problem am facing here is the display name of the RA which is showing corresponding row identifier's RA display name. Even though I pass different identifier for that column.

  • I can reproduce this behavior - I'd suggest opening a case with Appian Support to have them investigate this further.