LassoScript Utility
Basics Browse Detail

[Database_NameItem]

Tag Link [Database_NameItem] Category Database
Type Substitution Source Available No
Support Preferred Version 5.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 Equivalent [DB_NameItem]

Description

When used inside [Database_Names] ... [/Database_Names] container tags, [Database_NameItem] returns the name of the current database.

Syntax

[Database_Names]
  [Database_NameItem]
[/Database_Names]

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 names of all available databases:

Use the [Database_Names] ... [/Database_Names] tags with an enclosed [Database_NameItem] tag. The following example lists all the databases that are available to the current user.

[Database_Names]
  <br>[Database_NameItem]
[/Database_Names]

<br>Contacts
<br>Site