LassoScript Utility
Basics Browse Detail

[Rows] ... [/Rows]

Tag Link [Rows] ... Category Database
Type Container Source Available No
Support Synonym Version 3.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Rows] ... [/Rows] loops through each record in a found set. Optional -InlineName parameter specifies that results should be returned from a named inline. Synonym is [Records] [/Records].

Syntax

[Rows]
  [Field: 'Field_Name']
[/Rows]

[Rows-InlineName='Inline_Name']
  [Field: 'Field_Name']
[/Rows]

Parameters

Optional Parameters
-InlineName The name of an inline whose results should be returned by the records tag. If omitted, defaults to returning results from the nearest enclosing inline or Lasso action.

Examples

To display search results within an inline:

Use the [Rows] ... [/Rows] tags. The following example finds all records in the People table of the Contacts database and formats the result.

[Inline: -FindAll,
    -Database='Contacts',
    -Table='People']
  [Rows]
    <br>[Field: 'First_Name'] [Field: 'Last_Name']
  [/Rows]
[/Inline]

<br>John Doe
<br>Jane Doe
<br>John Surname
<br>Mary Peoples