LassoScript Utility
Basics Browse Detail

[KeyColumn_Name]

Tag Link [KeyColumn_Name] Category Database
Type Substitution Source Available No
Support Synonym 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

Description

[KeyColumn_Name] returns the name of the current key field.

If this tag is called within [Inline] ... [/Inline] tags, it returns the name of the key field which is specified in the parameters of the opening [Inline] tag. If this tag is used in the response page to a URL or HTML form based Lasso action then this tag returns the key field named in the parameters of the action.

Syntax

[KeyColumn_Name]

Parameters

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 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 the name of the key field being used for the current action:

Use the [KeyColumn_Name] tag. The following example simply displays the name of the key field used to the visitor.

[Inline: -Database='Contacts', -Table='People', -KeyField='ID', -FindAll]
  <br>The current key field is  [KeyColumn_Name].
[/Inline]

The current key field is ID.