Skip to content
MyAppBuilder
StableGuide

Dynamic routes

A dynamic page shows one record and learns which record from its address: /jobs/:id receives id. For that to work, every navigation into the page must pass the parameter, and the page's components must use it. The Storyboard makes both visible: edges that forget the parameter tur

A dynamic page shows one record and learns which record from its address: /jobs/:id receives id. For that to work, every navigation into the page must pass the parameter, and the page's components must use it. The Storyboard makes both visible: edges that forget the parameter turn amber, and the page inspector lists the parameters a page needs.

When to use

Whenever a list leads to a detail, edit or approval screen: Jobs → Job detail, Quotes → Quote approval, Customers → Customer details.

The pattern

Example
Jobs (standard)                         Job detail (dynamic, /jobs/:id)
┌───────────────┐   Row click           ┌──────────────────────────┐
│ Table of Jobs │ ──── :id = Event › id ──▶ Detail view             │
└───────────────┘                       │  data: Record from page  │
                                        │        URL (:id)         │
                                        └──────────────────────────┘

1. Declare the parameter on the page

  • Create the page as Dynamic (/:id) in the new page dialog, or pick the Detail page (/:id) starter, which also drops a detail component.
  • Or select an existing page's node in the Storyboard and add id under Route parameters; the route becomes /…/:id.

A dynamic page whose route has no parameter is reported as an error by the flow validation and blocks publishing.

2. Pass the value from the source

Select the edge (or create it with drag-to-connect). Under Parameters, the row :id is marked Required by target until you set it. Click ⚡ and choose the value:

Source componentPick
Table, data grid, cards, list (onRowClick)Event › id (or Event › record, then the id)
Button or link inside a repeated item (cards, list, detail)Current record › id
Form (onSuccess after creating a record)Action results › last result id
A page that already has :id (e.g. detail → edit modal)Page parameters › id

The same choices are offered by the Connect pages dialog and by the Actions tab in Build.

3. Use the parameter on the target page

Select the detail view, form or table on the dynamic page, open the Data tab and click Record from page URL (:id). It adds the filter ID is Page parameter › id and limits the query to one record. Any other component can read the value from the data picker (Page parameters › id) or in a template as {{params.id}}.

What the Storyboard checks

  • The edge badge missing :id and an amber colour when the action passes nothing.
  • The page warning n navigations missing route parameters.
  • Validate flow lists each case as a warning (Job detail requires :id); it does not block publishing, but the page would show nothing.

Example: quote approval from the portal

  1. Portal page My quotes shows cards bound to Quotes (only the customer's own).
  2. Dynamic page Quote approval at /quotes/:id with a Quote Approval component bound with Record from page URL (:id).
  3. Edge: cards Row click → Quote approval, :id = Event › id.

Common mistakes

  • Typing a record id as a fixed value: the page would always show the same record. Use a dynamic value.
  • Passing Event › record where an id is expected: pass Event › id, or the record's id field.
  • Putting a dynamic page in the menu: menus cannot pass parameters; dynamic pages are excluded from the menu.
  • Forgetting the target's own query: passing :id is not enough; the detail component must filter on it (step 3).

Related

Was this helpful?