Hello, i have a record type mapped on an expression rule that calls an integration service.
I'm able to create a grid which displays every record type's element; this is easy :) I would need to insert a column at the end of each row that calls an integration service passing a property of the record type.
I created a related action that calls a process model that contains the integration service call; i can't call this related action from that column.
In the last column, the one that calls the service, it has to be present a "play" icon.Thanks in advance.Marco
Discussion posts and replies are publicly visible
You can use the Record action component - Record Action Component within the grid column to call a related action in context of that particular record.
Sample code snippet -
a!gridColumn( label: "", sortField: <recordColumnSortField>, value: a!recordActionField( actions: { a!recordActionItem( action: <recordRelatedAction>, /*Use record! e.g. recordType!Case.actions.editCase*/ identifier: <recordIdentifier> ) }, style: "TOOLBAR", display: "ICON" ), align: "CENTER" )
thank u for the reply. this works. i have another problem that i can try to resolve.
Is this in the modal after clicking the above described recordActionItem? What are you setting for the "identifier: <recordIdentifier>"? Are you passing a valid record id specific to the row?
it should probably look something like this:
I got this thanks to your reply; i wrote
recordType!<RECORD_TYPE>.fields.<identifier> but is incorrect.
the right version is
fv!row[recordType!<RECORD_TYPE>.fields.<identifier>]
I have only one last question; it is possible that when you click on the column where the recordActionField is present, you do not open a new tab but show a modal with a message that the action has been performed successfully
You can set the Open Action In property, openActionsIn: "DIALOG"
and on the related action details in the record you can set the size of the modal too.
thank u for the support Dave.