We are on 20.3 version, have a requirement to edit a column's value in read-only grid.
We have work around for this, but would like to explore this approach as well:
Therefore, tried following:
a!gridTextColumn(label:"Name",value:a!recordActionField(actions: {a!recordActionItem(action:recordType!<recordName>.actions.<relatedActionToUpdateName>,identifier:<fv!row.id>)})
I would like to show existing row value along with an related action in the single grid column.
For eg:
Discussion posts and replies are publicly visible
I think adding a recordActionField into a gridTextField will not work. Try switching to the newer style gridField and create the columns via gridColumn.
Thanks for your reply.
We are using new gridField() with gridColumn, apologies for the typing error.
a!gridColumn(label:"Name",value:a!recordActionField(actions: {a!recordActionItem(action:recordType!<recordName>.actions.<relatedActionToUpdateName>,identifier:<fv!row.id>)})
Trying above snippet, renders only related action name in the grid column and we can successfully execute it.
But we are looking for something to show existing column's value, alongwith an edit action to update it.
OK. Then try to use a linkfield with a startProcessLink or a richtTextDisplayField and a richTextItem with such a link