LassoScript Utility
Basics Browse Detail

[Link_CurrentSearchURL]

Tag Link [Link_CurrentSearchURL] Category Link
Type Substitution Source Available No
Support Deprecated Version 3.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 3.x

Description

[Link_CurrentSearchURL] returns a link to the current Lasso action. The result of this tag is a URL that references the current format file with parameters that perform the current Lasso action.

If this tag is used within [Inline] ... [/Inline] tags then the action specified in the starting [Inline] tag will be returned. If this tag is used within a format file that is a response to an HTML form or URL based action then the parameters of that action will be used.

The URL can be used as the base to add additional parameters to the action or the -No... parameters can be used to filter out various types of parameters to replace them in the finished URL.

The URL will specify an action using Classic Lasso syntax. If Classic Lasso support is disabled then an [Inline] tag with an [Action_Params] parameter will be required on the response page to trigger the action.

[Link_CurrentSearchURL] is a synonym and [Link_CurrentAction] ... [/Link_CurrentAction] can be used to create an HTML anchor tag pair <a href="..."> ... </a> automatically with the same URL that [Link_CurrentActionURL] provides.

Syntax

<a href="[Link_CurrentSearchURL]"> Current Action </a>

[Link_CurrentSearchURL]

[Link_CurrentSearchURL-NoAction,
  -NoDatabase,
  -NoTable,
  -NoKeyField,
  -NoKeyValue,
  -NoLogicalOperator,
  -NoResponse,
  -NoSkipRecords,
  -NoMaxRecords,
  -NoSort,
  -NoTokens]


Parameters

Optional Parameters
-No... Removes a specified command tag from the link (e.g -NoDatabase, -NoMaxRecords, etc.).
-No.Name Removes a specified name/value parameter from the link (e.g. -No.First_Name).
-NoAction Removes action command tag from the link.
-NoClassic Removes -Database,-Table,-KeyField command tags from the link.
-NoParams Removes all name/value parameters from the link.
-NoSort Removes all sort command tags from the link.
-NoTokens Removes all tokens from the link.
-Response Sets the base URL for the link.
Other Parameters All other keywords and name/value parameters are added to the link.

Examples

To link to the current search with different sorting:

Use the [Link_CurrentSearchURL] tag. The following example uses the -NoSort parameter to remove the sort arguments from the current search. Additional search parameters are then added to the end of the URL.

<a href="[Link_CurrentSearchURL-NoSort]&-SortField=Last_Name"> Sort by Last Name </a>