Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GM - Grid Interaction Subscriber

(gmpkg:dataGridInteractionSubscriberLWC)

Documentation

GM - Grid Interaction Subscriber component is an invisible bridge that turns GridMate grid interactions into Lightning App Builder events. It listens to the interactions published by a grid on the same page and, when the Object Name, DataGrid Name and DataGrid Code match the source grid, fires the corresponding event. In the App Builder, you can then use the Event tab of the subscriber to update other components on the page, for instance by mapping {!Event.recordId} to their recordId property.

The source grid must have the Enable Dynamic Interactions option checked to publish its interactions.

The subscriber matches the grid using the following values:

Grid
DataGrid Name
DataGrid Code

The User Grid developer name

The User Grid developer name

The Field Set name

The DataGrid Code of the grid

The ListView Name

The DataGrid Code of the grid

The related list name

The DataGrid Code of the grid

Use case: Display a grid of accounts with dynamic interactions enabled and refresh the related grids of the page with the account clicked by the user. See User Grid - Dynamic Interactions and Grid Dynamic Interaction.

Specification

Property
Type
Description

Object Name

String

The API name of the object displayed by the source grid. Ex. Account.

DataGrid Name *

String

The name of the source grid. See the table above. The subscriber stays inactive while this property is empty.

DataGrid Code

String

The code of the source grid. See the table above. Leave it empty only if the source grid has no code.

API Reference

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>65.0</apiVersion>
    <isExposed>true</isExposed>
    <masterLabel>GM - Grid Interaction Subscriber</masterLabel>
    <description>GM - Grid Interaction Subscriber</description>
    <targets>
        <target>lightning__AppPage</target>
    </targets>
    <targetConfigs>
        <targetConfig targets="lightning__AppPage">
            <property name="objectName" type="String" label="Object Name" description="DataGrid Object Name" />
            <property name="gridName" type="String" label="DataGrid Name" description="DataGrid Name" />
            <property name="gridCode" type="String" label="DataGrid Code" description="DataGrid Code" />

            <event name="rowclicked" label="Row Clicked" description="Fired when an a row is clicked">
                <schema>
                    { "type": "object", "properties": { "recordId": { "type": "string", "title": "Record Id",
                    "description": "Record Id" } } }
                </schema>
            </event>
            <event name="reloaditems" label="Reload Items" description="Fired when a reload of the grid is requested">
                <schema>
                    { "type": "object", "properties": { "recordId": { "type": "string", "title": "Record Id",
                    "description": "Record Id" } } }
                </schema>
            </event>
        </targetConfig>
    </targetConfigs>
</LightningComponentBundle>

Events

Event
Payload
Description

Row Clicked (rowclicked)

recordId

Fired when a row of the source grid is clicked. {!Event.recordId} is the Id of the clicked record.

Reload Items (reloaditems)

recordId

Fired when a reload of the grid is requested.

Last updated

Was this helpful?