You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#If moving or renaming this doc file, implement a temporary redirect and let the respective team know they should update the URL in the product. See Mapping to Products for more details.
@@ -9,11 +9,11 @@ weight: 70
9
9
10
10
Parameters are the means by which you pass data to your page. When a page is loaded, the parameters are filled with the current values.
11
11
12
-
If you want to use an object or primitive in your page, use a parameter. In the image below, the parameter's name is **CustomerName** is of **Type**`string`, is not **Required** and has a **Default value** shown in string empty.
12
+
To use an object or primitive value in your page, define a parameter. In the image below, the parameteris named CustomerName, is of type string, is not required, and has a default value of an empty string `''`.
The page has a parameter, which can be made required or optional. If it is required it is mandatory to supply an argument for that parameter when opening a page.
30
+
Determines whether it is **required** or **optional** to [pass an argument](/refguide/page-parameter/#passing-arguments) to the parameter when opening the page. If it is required it is mandatory to supply an argument for that parameter when opening a page.
31
31
32
-
####Default Value
32
+
### Default Value
33
33
34
34
When an argument is set to **optional**, a default value can be set. When a default value is set if the parameter is omitted, the default value will be used. In the example below, if the parameter is omitted by the user an empty string `''` will be used for the parameter.
The default value is used when the argument is omitted, not when the argument value is `empty`.
39
+
The default value is used when the argument is omitted during **modeling**. Not when the argument value is `empty` during **runtime**.
40
40
{{% /alert %}}
41
41
42
-
## Passing Arguments from a caller
42
+
## Passing Arguments {#passing-arguments}
43
43
44
-
When using an**Show page** action form a microflow, nanoflow or button, you can pass arguments in two primary ways, depending on the data type of the argument.
44
+
Arguments are passed to page parameters when a page is opened. For example, using a**Show page** action [on a widget event](/refguide/on-click-event/#show-page) or in a [microflow](/refguide/show-page/). For each parameter the page has an argument can be configured. It is only necessary to pass arguments to [required parameters](#argument).
Variable arguments are used to pass parameters from the context to the page. This is done by selecting the desired `arguments` from the dropdown. **Optional** can be omitted by selecting `(None)` .
50
+
Variable arguments are used to pass parameters from the context to the page. This is done by selecting from the available variables on the page presented in the dropdown. **Optional** parameters don't require an argument and can be omitted by selecting `(None)` .
Primitive values, such as strings, booleans, and enumerations, can be passed as expressions. This method allows users to use functions and follow associations within the expression to set the argument values. Using expressions for arguments provides flexibility in setting values and improves the functionality of pages. In the example below, the page has an parameter **AnimalName** which is populated by the **Name** member of the provided **Animal** object.
56
+
Objects and primitive values, such as `Boolean`, `Date and time`, `Decimal`, `Enumeration`, `Integer/Long`, and `String`, can be passed and used in expressions. This method allows users to use functions and follow associations within the expression to set the argument values. Using expressions for arguments provides flexibility in setting values and improves the functionality of pages. In the example below, the page has a parameter **AnimalName** which is populated by an expression extracting the **Name** member of the provided **Animal** object.
0 commit comments