LassoScript Utility
Basics Browse Detail

[WAP_MaxRows]

Tag Link [WAP_MaxRows] Category Client
Type Substitution Source Available Yes
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Integer Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[WAP_MaxRows] returns the number of text lines in the screen of the current client's WAP browser.

This information is reported by the WAP browser. Not all browsers may supply this information.

Syntax

[WAP_MaxRows]

Parameters

No Parameters Required.

Examples

To display as many records as will fit in a WAP browser:

Use the [WAP_MaxRows] tag to determine how many records can be shown on a WAP browser's screen. The following code uses this tag in [Inline] ... [/Inline] tags with a -FindAll action. The WAP Browser can display 4 lines so 4 records are shown.

[Inline: -FindAll,
    -Database='Contacts',
    -Table='People',
    -MaxRecords=(WAP_MaxRows)]
  [Records]
    <br>[Field: 'First_Name'] [Field: 'Last_Name']
  [/Records]
[/Inline]

<br>John Doe
<br>Jane Doe
<br>Bob Surname
<br>Jane Surname