ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Pager control
  • Overview of the Pager control
  • Creating a Pager control
  • Notes
  • Send value of controls to the server
  • Description of a Table control and a Looper control
  • Active WEBDEV Pager
  • Event managed by default
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview of the Pager control
The Pager control is used to quickly access the records of a Table or Looper control displayed on several pages. The Web user clicks the page number to display the corresponding records.
A pager is automatically associated with non-Ajax Table or Looper controls (based on a data file or populated programmatically) when the maximum number of rows per page is greater than the number rows in the control.
You can also create a Pager control and associate it with a Table or Looper control afterwards.

Creating a Pager control

To create a Pager control:
  1. On the "Creation" tab, in the "Navigation" group, click "Pager".
  2. Click where you want to create the control in the page. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu.
To associate the pager with an existing Table or Looper control:
  1. Open the Pager control description window.
  2. Select the Table or Looper control in the "General" tab.
Notes

Send value of controls to the server

The option "Send the value of controls to the server" ("General" tab of the description window) is used to perform the following operations when using a Pager control:
  • validate the controls of the current page.
  • return the value of these controls to the server.
Then, the server performs the specified action.

Description of a Table control and a Looper control

When describing a Table or Looper control, you have the ability to specify the maximum number of rows per page:
  • Table control: "Details" tab in the characteristics of Table control.
  • Looper control: "General" tab in the characteristics of Looper control.
If the number of rows displayed in the page is greater than the maximum number specified, a pager is automatically associated with the Table or Looper control. The Pager control is displayed below the Table and/or Looper control.
Remark: This option is available for non-Ajax Table controls only. Table controls in "Server + AJAX" mode use a scrollbar.

Active WEBDEV Pager

The pager in AWP mode automatically manages the method for passing parameters, without programming.
This type of pager allows you to reference all the linked pages and it avoids having to use cookies to store the current search.
Event managed by default
WEBDEV manages the following event by default:
EventRuntime condition
Initialization (Server code)Run when opening the page.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 06/16/2022

Send a report | Local help