| Tag Link | [Records] ... | Category | Database |
|---|---|---|---|
| Type | Container | Source Available | No |
| Support | Preferred | 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 |
[Records] ... [/Records] loops through each record in a found set. Synonym is [Rows] ... [/Rows].
Optional
[Records]
... [Field: 'Field_Name'] ...
[/Records]
[Inline: ...]
[Records]
... [Field: 'Field_Name'] ...
[/Records]
[/Inline]
[ResultSet:
[Records]
... [Field: 'Field_Name'] ...
[/Records]
[/ResultSet]
[Records:
... [Field: 'Field_Name'] ...
[/Records]
| 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. |
To display search results within an inline:
Use the [Records] ... [/Records] tags. The following example finds all records in the People table of the Contacts database and formats the result.
[Inline:
[Records]
<br>[Field: 'First_Name'] [Field: 'Last_Name']
[/Records]
[/Inline]
<br>John Doe
<br>Jane Doe
<br>John Surname
<br>Mary Peoples