Read query params from URL
Pass query parameters and read them from the URL
If you need to pass and read query params from the URL, follow these steps.
Use case: you have a Table, and on row select, you need to be transferred to a Details page of a certain record.
First of all, create a new page for the Details information. Then, create an action that will be navigating you to that page:
Add a new action - Navigate.
Specify Page Path as
{{routes.details.url}}
In Query Params, add
id
as:{{ui.customersTable.selectedRow.data.customerNumber}}
Next, assign the navigation action to the On Row Select trigger:
Now, go to the Details page and add a Detail component to it. To display the data of a selected record from the table:
Add a new action - Load Row.
Add a filter to retrieve a row as
Customer Number ={{ activeRoute.queryParams.id}}
Click anywhere on the Details component and assign this new action in the Data field.
Now, as you select a certain row in the table, you will be sent to the Details page.
Last updated