Chaining Screens & Passing Parameter

Chaining Screens & Passing Parameter


Building an app is about more than just filling out forms; it’s about creating a seamless flow of information. By Passing Parameters, you can link screens together to filter results, pre-populate fields, and reduce manual data entry for your users.

Why use parameters?

Passing parameters reduces “Cognitive Load.” By pre-filling fields and filtering out irrelevant data, you guide the user through a specific task, making your app feel intelligent and responsive rather than just a collection of static pages.


Core Concepts: This vs. Target

To pass data, you need to tell the platform where the information is coming from and where it is going with user interactions.

  • {{this}}: Refers to the current screen’s data.
  • {{target}}: Refers to the destination screen being opened.

Note: These are usually followed by a column index (e.g., [0] for the first column) or a Column Title.


Quick Syntax Reference

Target Screen TypeGoalSyntax Example
Details ScreenOpen a specific record{{this[0]}}
Listing / MapFilter rows based on a value{{target[1]}} = {{this[1]}}
Data Entry FormPre-fill form fieldsfield_id:{{this[0]}}|field_2:Text

Common Use Cases

Listing Screen > Details Screen (The "Deep Dive")

When a user taps an item in a list, you want the next screen to show the specific details for that row.

  • How it works: The Listing screen passes a unique ID (Primary Key) to the Details screen.
  • Syntax: {{this[0]}}
  • Requirement: The value passed must match a unique value in the first column of the Details screen’s data source.


Details Screen > Listing Screen (The "Category Filter")

Use this when you want to see “More items like this.” For example, viewing a product and clicking a button to see all other items from the same brand.

  • How it works: You filter the target list columns by a value on your current screen.
  • Syntax: {{target[1]}} = {{Brand}}
Details Screen > Data Entry Form (The "Prefilled Update")

Instead of making users type in information they are already looking at, use parameters to “carry” that data into a form.

  • How it works: Map the form’s internal Data Names to your current screen’s values. Use a pipe (|) to pass multiple values.
  • Syntax: inventory_id:{{this[0]}}|status:In_Review
  

Tips & Troubleshooting

The “Unique ID” Rule

If you pass a parameter to a Details Screen and it finds more than one matching row (duplicate IDs), the screen will fail to populate. Always ensure your first column contains unique identifiers (like a Serial Number or GUID).

Managing Saved Drafts

When you launch a Data Entry Form using parameters, the system treats this as a “New Entry” flow.

  • To view saved entries: You must configure a separate Interaction to launch the App: Entry Drafts data source.
  • Note: Passing parameters from a Listing screen to a Form will, by design, always create a new record, skipping the “Edit Existing” prompt.

Use the “Inventory App” Template

The best way to master these interactions is to see them in action. Install the Inventory App from the Examples Catalog to explore the pre-configured logic for:

  • Custom Boards: Navigation hubs.
  • Mapping Screens: Filtering pins by GPS coordinates.
  • CRUD Operations: (Create, Read, Update, Delete) workflows.