GM - Flow Edit Grid
(gmpkg:FlowEditGridComponent)
Documentation
GM - Flow Edit Grid component is used to edit records from a data grid inside a flow.
Use case: Display a grid of contacts to add them as opportunity contact roles in a screen flow. See Flow Tutorial.
Specification
The following properties use JSON syntax as part of their configuration: .
recordId
String
recordId to use. Keep this empty if you want to use the current record.
Related Object Name *
String
The name of the related object to display
FieldSet Name *
String
The Field Set name of the related object to display
Row Limit *
Integer
The maximum number of rows to fetch.
Page Size *
Integer
The number of rows to fetch per step.
Custom Label
String
Override the title of the data grid.
Custom Icon
String
Customize the data grid icon. All lightning icons are supported. You can get the icon name from https://lightningdesignsystem.com/icons/
Grid Height
Integer
Set the grid height. Set this property if you want to control the height and show up components after the grid. The user has to scroll vertically to see more records.
Candidates
String
The list of records to display. The collection should be a JSON string. See Flow Tutorial.
Within GM - Flow View Grid you can use either Candidates or Filter.
Candidates could be a list of already stored records or a brand new ones. For stored objects, we use the list of Id(s) to get the records from the database
Filter
String
JSON string to define filter criteria. Don’t forget __c for custom fields. See GM - RelatedList Grid
Sort
String
The field list to sort the data grid. This field is used only for the initial load. Don’t forget __c for custom fields. See GM - RelatedList Grid
Order
String
Ascending or descending order for sorting. For ascending enter the value asc. For descending enter the value desc
Show Border
Boolean
Check this option if you wish to add a border to the grid.
Show Column Border
Boolean
Check this option if you wish to add a border to the grid columns.
Cell Coloring
String
JSON conditions for cells coloring. You can define for each field displayed in the grid the coloring and the corresponding condition. See GM - RelatedList Grid
Lookup Fields Options
String
JSON string to customize lookup fields. You can define different aspects for each lookup field. See GM - RelatedList Grid
Default Values
String
JSON string to initialize a new object created from the data grid. Use __c for custom fields. See GM - RelatedList Grid
Enable Update Object
Boolean
Check this option if you wish to allow the end-user to perform inline editing of the record displayed.
Enable Delete Object
Boolean
Check this option if you wish to allow the end-user to delete records.
Enable Create Object
Boolean
Check this option if you wish to allow the end-user to create new records.
Save Records
Boolean
Check this option if you want to save the record when the user hits Next/Finish.
Updated Records
String
The list of updated records as JSON string. Set this property only if you want to assign the output manually.
Deleted Records
String
The list of deleted records. Set this property only if you want to assign the output manually.
Created Records
String
The list of new records as JSON string. It contains only created records.
Modified Records
String
The list of modified records as JSON string. It contains only modified records.
Enable Auto Fill
Boolean
Check this option if you want to enable auto fill. With this option enabled, the user can drag to fill values like Excel.
ReadOnly Fields
String
',' separated list of read-only fields. The user will not be able to edit these fields the same as read-only fields on the page layout. See GM - RelatedList Grid
Action Labels
String
JSON string override the action labels. Any flow action can be customized. See the example below :
API Reference
Cell Handler Example
Last updated