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
Copy file name to clipboardExpand all lines: content/en/docs/refguide/modeling/pages/page/page-parameter.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,41 +7,43 @@ weight: 70
7
7
8
8
## Introduction
9
9
10
-
Parameters are the means by which you pass data to your logic. When a page is loaded, the parameters are filled with the current values.
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 the parameter. In the image below, the parameter name is **CustomerName** is of **Type**`string`, is not **Required** and has a **Default value** shown in string empty.
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.
The **Documentation** property can be used to store developer documentation. This can be used to explain to other developers about the parameter. End-users will never see this documentation.
18
+
### Name
19
19
20
-
## Output Section
20
+
**Name** refers to the name of the parameter.
21
21
22
22
### Data Type
23
23
24
-
The data type of a parameter defines the type of the value that it expects. See [Data Types](/refguide/data-types/) for the possible data types.
24
+
The data type of a parameter defines the type of the value that it expects. Possible datatypes are **objects**, and **primitives** such as `Boolean`, `Date and time`, `Decimal`, `Enumeration`, `Integer/Long`, and `String`.
25
25
26
26
Default: *Object*
27
27
28
28
### Argument {#argument}
29
29
30
-
Determines whether the argument is optional or required. When the argument is set to be **Optional**, it can be omitted when opening the page. When the argument is set to be **Required**, an argument must be passed.
30
+
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.
31
31
32
32
#### Default Value
33
33
34
-
When an argument is set to **optional**, a default value can be set:
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`.
40
40
{{% /alert %}}
41
41
42
-
### Name
42
+
##Passing Arguments from a caller
43
43
44
-
**Name** refers to the name of the parameter.
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.
0 commit comments