LassoScript Utility
Basics Browse Detail


Tag Link [Lasso_CurrentAction] Category Results
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x


[Lasso_CurrentAction] returns the current database action which is being performed. If no database action is being performed then the string Nothing is returned.

This tag can be used within the [Inline] ... [/Inline] tags that perform a database action or on a format file which is the response to an HTML form or URL that performs a database action. This tag cannot be used within [Records] ... [/Records] tags that reference a named inline.


[Lasso_CurrentActionEncoding Keyword]


Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output in a format file. No encoding is applied to nested tags unless an explicit encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.


To return the current database action:

Use the [Lasso_CurrentAction] tag. The following [Inline] ... [/Inline] tags perform a search in the People table of the Contacts database for all records and return the name of the action perfomed.

[Inline: -FindAll,
  <br>The action was [Lasso_CurrentAction].

The action was FindAll.