Parameters

Parameters in Jet Admin

Using parameters you can pass values such as subject and body to Send email, filter a list, or pass data from one page to another. You can specify parameters for each page and component. Here we guide your types of parameters and how to specify parameters for page and components.

Component parameters

Let's say you have two tables - customers and transactions. If you select a customer, you'll get the customer's transactions by customer idin the transactions table.

Specify a value for a parameter

1. Go to the settings of the table component with transactions then click on Data:

2. Pass the customer id parameter as take value from component then select Customers table

3. Now when you click on a customer you will see the list of his transactions

Page parameters

In case, when you want to build a Detail page for your user with the user info on this page: first name, last name, address, etc. You need to pass the user ID parameter from one page to another. To do this you need to create a parameter for this page and pass this parameter to another page in Action.

Create page parameters

To create page parameters go to the page settings then click +Add Parameter.

Let's say the Refund Tool page includes a customer table, and the other Users page includes a table with detailed information about the customer. We want to pass the customer id from one page to another to get the additional info.

1. To create a link between pages create an Action specified as Open Page

2. Select the page you want to open (users page in our case).

3. Pass the customer id parameter from the customer table.

4. Select a user and click on the Get Info button.

How to set a parameter value?

Once you have added parameters for a page or component, you need to set the values. There are 4 ways how to specify filtering values:

  • Specified by a user (user-defined filter value)

  • Display as table filters (when you use the parameter in component requests)

  • Set manual value (set default value)

  • Take from components (get value from other components)

Take value from components

Let's say you have two tables - customers and transactions. If you select a customer, you'll get the customer's transactions by customer idin the transactions table.

Display as field filter

For example, you want to set up filtering by a table. For each field by which you want to filter, you need to pass the parameter.

Set manual value

For example, you want to send promotional emails, you need to manually set the from_email parameter as set manual value to send emails from a default email.