Related Actions Not Getting Refreshed

We have a requirement where we display/hide the related actions for a particular record based on the approval or rejection of tasks. We are observing that the even though the record grid data is getting refreshed when we click on the refresh button, but the related actions are not getting refreshed. Please find a sample snippet of the code:-

a!gridField(
labelPosition: "ABOVE",
data: a!recordData(
recordType: recordType!SampleRecord,
filters: rule!SampleFilterRule()
),
columns: {
a!gridColumn(),
a!gridColumn(
value: a!recordActionField(
actions: {
a!recordActionItem(
action: recordType!SampleRecord.actions.SampleAction,
identifier: fv!row[SampleMetric.identifier]
)
}
)
)
},
validations: {},
spacing: "DENSE",
borderStyle: "LIGHT",
shadeAlternateRows: false,
rowHeader: 1,
refreshOnVarChange: ri!refreshVariable,
refreshAfter: "RECORD_ACTION",
showSearchBox: true,
showRefreshButton: true(),
showExportButton: false,
)

What can I do to resolve this?

  Discussion posts and replies are publicly visible

Parents Reply Children