Lasso Soft Inc. > Home

[Action_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 -Count keyword is specified then the number of repetitions of the named parameter is returned. An optional integer parameter allows each of the repetitions to be returned individually.

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.

  • Syntax
  • Parameters
[Action_Param: 'Parameter Name']

[Action_Param: 'Parameter Name', -Count]

[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 -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
Examples

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', -Count)]
  <br>[Action_Param: 'First_Name', Loop_Count]
[/Loop]
Result:
<br>John
<br>John
<br>Mary
<br>Joe
<br>Sarah
Tag Link [Action_Param] Category Utility
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type String or Integer Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft