ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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 handled by default
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 field: "Detail" tab for Table field characteristics.
  • RepeatString field: "General" tab for RepeatString field characteristics.
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.
Note: This option is only available for non-Ajax table fields.. 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 handled by default
WEBDEV supports the following event by default:
EventRuntime condition
Initialization (Server code)Executed when the page is opened.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help