Using Wave Grid in Components and Flows
Last updated
Last updated
The Valorx Grid can be embedded within an Aura Component to enhance data visibility and interaction. Before proceeding, ensure you are familiar with Lightning Components (Aura Components) and have already created Valorx Grids.
This guide demonstrates how to configure both Valorx Grid and Valorx Related Grid within a Lightning Component.
Open Developer Console
Click Setup and open the Developer Console.
Create a New Lightning Component
Click File (top-left corner), hover over New, and select Lightning Component.
Enter a component name, e.g., MyGridComponent.
Select the component availability based on your requirements.
Click Submit.
Define Parameters (For Related Grid)
If using a Valorx Related Grid, define the Parent Record ID as a parameter.
Add the following code snippet to the component:
Embed the Valorx Grid and Related Grid
Use lightning:tabset to display both grids. Note: Below is the sample code
Configure Component Parameters
Grid ID – Enter the Grid ID (format: ObjectName::GridId). .
height – Set the height of the grid.
canChangeGrid – Enable or disable switching between grids within the same object.
relationshipName – Define the Lookup Relation Name.
recordId – Parent Record ID.
🔹 After configuring the parameters, ensure to save the component to apply the changes.
Now you have successfully embed a Valorx Grid in Aura component.
This is only available after v10.
Integrating Valorx Grids and Valorx Related Grid into a Salesforce Screen Flow enhances workflow automation. Follow these steps to embed Valorx Grids in a Screen Flow.
Create a New Flow
Click Setup and search for Flow in the Quick Find box.
Click New Flow → Select Start from Scratch → Select Screen Flow → Click Create.
Add a Screen Element
Drag and drop a Screen element from the Element panel onto the flow canvas, or click the + button and select Screen.
Provide a Screen Component Label (e.g., "Valorx Grid").
Embed Valorx Grid in the Screen Flow
Scroll to Components on the left panel.
Locate the Custom section and drag the Valorx Grid component to the screen.
Configure the following properties:
API Name – Provide the component's API name.
Grid ID – Enter the Grid ID (format: ObjectName::GridId). .
Height – Adjust the grid height.
Allow Changing Grids – Enable/disable users' ability to switch grids within the same object.
Embed Valorx Related Grid
Follow the same steps to add the Related Grid component below the Valorx Grid.
Configure the following properties:
Grid ID – Enter the Grid ID. .
Height – Adjust the height.
Allow Changing Grids – Enable/disable users' ability to switch grids within the same object.
Relationship Name – Specify the Lookup Relation Name.
Record ID – Enter the Parent Record ID.
Save and Activate the Flow
Click Done → Click Save and provide a Flow Label.
Click Activate to enable the Flow.
When using the Valorx Grid across different interfaces, you need the Grid ID and Object Name for configuration in Flow and Lightning Components. Follow these steps to locate the Grid ID:
Open Wave Dashboard.
Hover over the grid you want to retrieve the Grid ID from.
Click Surf the Wave.
In the URL, locate the Grid ID and Object Name.
To add an Input Variable in Flow:
Click + New Resource.
Set Resource Type to Variable.
Enter API Name as recordId
.
Choose Data Type as Text.
Check the box for Available for Input.
Then click Done.