[Action_Params] returns an array of pairs that contains each of the parameters of the current action as well as all the command methods that define the current action.
If called within [Inline] methods the [Action_Params] method will return the parameters of the action defined within the enclosing inline. If called outside of [Inline] methods in the response page to a database action specified in a URL or HTML form then the [Action_Params] method will be the parameters of that action that loaded the page.
The [Action_Params] array will not contain the -InlineName parameter of an [Inline] method.
[Action_Params] is a compatibility layer inclusion and is largely equivalent to the Lasso 9 "native" [web_request->params]. Developers are encouraged to utilize [web_request->params] for new Lasso 9 solutions.
action_params
Use the [Action_Params] method. The following example loops through the [Action_Params] method displaying each name/value pair on a line by itself.
Code
loop(action_params->size)
action_params->get(loop_count)->first
' = '
action_params->get(loop_count)->second
'\n'
/loop
Result
paramname = paramvalue
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments