Tag Link | [Action_Param] | Category | Utility |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | String or Integer | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
Lasso 3 Equivalent | [Form_Param] |
[Action_Param] returns the value for an HTML form element, URL parameter, or [Inline] parameter. If the named parameter was not specified in the HTML form or URL that loaded the current page or in the nearest surrounding [Inline] tag then no value is returned.
If the optional
The [Action_Params] tag can be used to return an array that contains each of the parameters of the current action as well as all the command tags that define the current action.
[Action_Param: 'Parameter Name']
[Action_Param: 'Parameter Name',
[Action_Param: 'Parameter Name', Parameter Index]
Required Parameters | |
---|---|
Parameter Name | The name of the parameter to be returned. |
Optional Parameters | |
Parameter Index | The index of the repetition of the parameter to be returned. Defaults to 1 to return the first repetition. |
-Count | If specified, returns the number of repetitions of a given parameter. |
Encoding Keyword | Specifies the encoding for the tag's return value. Tags are encoded using |
To return all the repetitions of a named parameter:
Use the [Action_Param] tag to return each repetition of a named parameter for the current database action. The following example returns each repetition of the First_Name parameter.
[Loop: (Action_Param: 'First_Name',
<br>[Action_Param: 'First_Name', Loop_Count]
[/Loop]
<br>John
<br>John
<br>Mary
<br>Joe
<br>Sarah