GM - Flow View Grid
(gmpkg:FlowViewGridComponent)
Last updated
(gmpkg:FlowViewGridComponent)
Last updated
GM - Flow View Grid component is used to view and select 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.
The following properties use JSON syntax as part of their configuration: Filter, Custom Field Labels, Cell Coloring.
Property | Type | Description |
---|---|---|
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.
Column Style
String
JSON string to override the column's style. See GM - RelatedList Grid
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. We use only the list of Id(s) to get the records.
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.
Custom Field Labels
String
A JSON string to override column label. See GM - RelatedList Grid
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
Show Record Details
Boolean
Check this option to allow the end-user to view the record details in the grid
Required
Boolean
Check this option to make a record selection required before moving to the next step.
Single Record Selection
Boolean
Check this option to make a single record selection.
Selected Records
String
The list of selected records as JSON string. Set this property only if you want to assign the output manually.
Selected Id(s)
String
The list of selected recordId. Set this property only if you want to assign the output manually.
Selected Record
String
The selected record as JSON string. Set this property only if you want to assign the output manually. This property is valid only if Single Record Selection is checked.
Selected Id
String
Selected record id. Set this property only if you want to assign the output manually. This property is valid only if Single Record Selection is checked.
Group By
String
',' separated list of fields to group by. Don’t forget __c for custom fields.
When an aggregation is defined, the Grid will display the intermediate aggregations at the group level.
The configuration wizard can be used to set this property.
Enable Explorer
Boolean
Check this option if you want to use the Grid Explorer. When this option is active, the end user will be able to explore the grid through the Explorer by filtering the records, hiding or reordering the columns and also by setting the grouping.
Search Fields
String
',' separated list of fields to search in. If the list is empty, the search input is hidden in action. Only text fields (Text, PickList, Phone, Email, URL) are supported. The configuration wizard can be used to set this property.
Wildcard Search
Boolean
Check this option if you wish to use a wildcard search. If this option is activated, the end user doesn’t have to add ‘*’ to the search query.
No Card Header
Boolean
Check this option to hide the grid header. Only the table will be displayed.
View Only Mode
Boolean
Check this option to display the grid in a view mode only. No checkbox is available. This mode is usefull to display a summary table for instance.
Aggregate
String
JSON string to define the aggregate field. Use __c for custom fields. The supported functions are "sum", "min", "max", "avg" and "avgnotnull". See GM - RelatedList Grid
Collapse Groups
Boolean
Check this options to collapse groups by default.
This option is relevant only it the records are grouped.
The user can still expand a group. When a group is expanded, the user can select/unselect the whole group records using the checkbox at the group level.
Preserve Selection
Boolean
Check this option to preserve the user selection. This option is useful when the search fields are configured or the explorer is enabled.
When the candidates are refreshed, the selected records that are no longer valid will be appended to the top of the grid.