PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
NbLinesPerPage (Property)
In french: NbLignesParPage
The Property NbLinesPage allows to:
  • To know and modify the maximum number of lines per page of an Table control.
  • Knowing and modifying the maximum number of repetitions per page of an Looper control.
    Caution: if the Looper control is multi-column, the Property NbLinesPage corresponds to the maximum total number of occurrences displayed in the Looper control (number of columns multiplied by the number of lines).
Reminder: The number of lines per page corresponds to the maximum number of lines of an Table control or Repeat area that can be displayed on one page.. This option is used to optimize the size of pages. This number is defined in the control description:
  • For the Repeat Area fields: "General" tab of the control description.
  • For Table fields: "Details" tab of the control description.
Versions 18 and later
WEBDEV - Server codePHP This property is now available for PHP sites.
New in version 18
WEBDEV - Server codePHP This property is now available for PHP sites.
WEBDEV - Server codePHP This property is now available for PHP sites.
Example
// Displays 20 lines of Looper control on one page
LOOP_Looper1.NbLinesPerPage = 20
Syntax

Finding out the maximum number of rows per page Hide the details

<Number of lines> = <Control used>.NbLinesPerPage
<Number of lines>: Integer
Maximum number of rows currently defined.
<Control used>: Control name
Name of control used: Table control or Looper control.

Modifying the maximum number of rows per page Hide the details

<Control used>.NbLinesPerPage = <New number of rows>
<Control used>: Control name
Name of control used: Table control or Looper control.
<New number of rows>: Integer
Maximum number of rows per page. This number must not be equal to 0.
Remarks
  • There is no need to call TableDisplay or LooperDisplay to take into account the new maximum number of rows per page.
  • This Property does not work if the Looper control and/or Table control is in Ajax mode.
  • This Property is not available on the fields Hierarchical table.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment