Skip to content

Commit 0930f54

Browse files
committed
Review: fix more comments
1 parent a27ecb4 commit 0930f54

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Parameter"
2+
title: "Page Parameters"
33
url: /refguide/page-parameter/
44
weight: 70
55
#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
99

1010
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.
1111

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 parameter is named CustomerName, is of type string, is not required, and has a default value of an empty string `''`.
1313

1414
{{< figure src="/attachments/refguide/modeling/pages/page/page-parameter.png" class="no-border" >}}
1515

16-
## Output Section
16+
## Mappings
1717

1818
### Name
1919

@@ -27,32 +27,32 @@ Default: *Object*
2727

2828
### Argument {#argument}
2929

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.
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.
3131

32-
#### Default Value
32+
### Default Value
3333

3434
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.
3535

3636
{{< figure src="/attachments/refguide/modeling/pages/page/page-parameter-default-value.png" max-width=70% >}}
3737

3838
{{% alert color="info" %}}
39-
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**.
4040
{{% /alert %}}
4141

42-
## Passing Arguments from a caller
42+
## Passing Arguments {#passing-arguments}
4343

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).
4545

4646
{{< figure src="/attachments/refguide/modeling/pages/page/page-parameter-mappings.png" width="500px" >}}
4747

4848
### Variable Arguments
4949

50-
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)` .
5151

5252
{{< figure src="/attachments/refguide/modeling/pages/page/page-parameter-argument-variable.png" max-width=70% >}}
5353

54-
### Expression-Based Arguments (All Data Types)
54+
### Expression-Based Arguments
5555

56-
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.
5757

5858
{{< figure src="/attachments/refguide/modeling/pages/page/page-parameter-expression.png" width="500px" >}}

0 commit comments

Comments
 (0)