-MaxRows specifies the maximum number of records which should be displayed on each page from a -Search or -FindAll action. The default is 50 if no -MaxRows tag is specified. Synonym is -MaxRecords.
This tag can be used in concert with the -SkipRows tag to page through a found set.
The value specified for this command tag can be retrieved using the [MaxRows_Value] tag.
[Inline: -MaxRows=MaxRows_Value, ...]
<a href="default.lasso?-MaxRows=MaxRows_Value&...">Link</a>
<form action="default.lasso" method="POST">
<input type="hidden" name="-MaxRows" value="MaxRows_Value">
...
</form>
Use the -MaxRows command tag. The following example specifies a -Search action in [Inline] ... [/Inline] tags. Only one record is returned since -MaxRows=1 is specified.
[Inline: -Search,
-Database='Contacts',
-Table='People',
-MaxRows=1,
'First_Name'='John']
[Records]
<br>[Field: 'First_Name'] [Field: 'Last_Name']
[/Records]
[/Inline]
<br>John Doe
Tag Link | -MaxRows | Category | Database |
---|---|---|---|
Type | Command | Data Source | Any |
Support | Synonym | Version | 3.0 |
Output Type | None | Security | None |
Implementation | Sets | Lasso 5.0,LDML3x |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft