- Overview of the Looper control
- Creating a Looper control
- Creating a horizontal Looper control
- Attributes of a Looper control
- Attributes of a Looper control in WINDEV or WINDEV Mobile
- Vocabulary
- Notes
- Swapping a Table control and a Looper control
- Refactoring: creating a Looper control from the selected controls
Overview of the Looper control A Looper control is used to repeat the controls found in a specific area. More precisely, a Looper control is a "container" control that is used to repeat several times all the controls (edit controls, static controls, combo boxes, ...) included in it. The Looper control simplifies the display and the input of information. Compared to the Table control, the Looper control presents richer interfaces as all types of controls can be repeated. The information displayed in the Looper control can: - be defined by programming: this is referred to as memory Looper control.
- come from a data file or from a query: this is referred to as browsing Looper control.
- come from a WLanguage variable: this is referred to as Looper control on source.
Versions 16 and later
New in version 16
Versions 18 and later New in version 18 Versions 21 and later New in version 21Notes: Versions 18 and laterAccording to the platforms, the Looper controls can be displayed: - vertically (by default on all the platforms).
- horizontally.
In WEBDEV, this type of control corresponds to the Linear Looper controls.
New in version 18According to the platforms, the Looper controls can be displayed: - vertically (by default on all the platforms).
- horizontally.
In WEBDEV, this type of control corresponds to the Linear Looper controls.
According to the platforms, the Looper controls can be displayed: - vertically (by default on all the platforms).
- horizontally.
In WEBDEV, this type of control corresponds to the Linear Looper controls.
Creating a Looper control Versions 18 and later New in version 18Attributes of a Looper control To easily handle a Looper control, you must be familiar with the following vocabulary: | | Name | Definition |
---|
Attribute | An attribute corresponds to the association between the control found in the looper and the property of this control that will be modified on each row. For each attribute, you must define:- the attribute name.
- the name of the control in the looper.
- the property of the control that will be modified on each row (value, color, etc.).
| Browsing looper | The Looper control is based on a data file or on a query. A record found in the data file is displayed on each row. Two types of browsing Looper controls are available:- Browsing looper "Loaded in memory": The content of the looper is loaded in memory then it is displayed. The access to the different control elements is faster. This mode is reserved for the data files containing less than 100 000 records.
- Browsing looper in "Direct access (no limit)": The Looper control displays the content of the data file or query directly. The current record corresponds to the selected element. Each move performed in the control involves an access to the linked data file. This mode is reserved for the data files containing more than 100 000 records.
| Memory looper | The Looper control is not based on a data file or on a query. The elements displayed in the control are defined by the developer (by programming). | Looper on source | The Looper control is based on a variable (global to the project, to the window or to the page, class member, etc.). |
Swapping a Table control and a Looper control WINDEV, WINDEV Mobile and WEBDEV allow you to automatically transform a Table control into a Looper control: - Select the Table control to transform.
- Select "Control .. Swap .. Table to Looper".On the "Modification" pane, in the "Transformations" group, expand "Refactoring and swapping" and select "Table to Looper".
Refactoring: creating a Looper control from the selected controls WINDEV, WINDEV Mobile and WEBDEV allow you to automatically create a Looper control from the controls currently selected: - Select the requested controls.
- Select "Control .. Refactoring .. Create a looper from the selection".On the "Modification" pane, in the "Transformations" group, expand "Refactoring and swapping" and select "Create a looper from the selection".
Related Examples:
|
Unit examples (WEBDEV): The Looper control (display the bounds)
[ + ] This example explains how to display the bounds of a looper with custom pager.
|
|
Unit examples (WEBDEV): Displaying/Hiding an input area
[ + ] This example explains how to display/hide an input area via a looper. Adding an input area is performed by adding a row in the looper.
|
|
Unit examples (WEBDEV): The Looper control (selection bar)
[ + ] This example explains how to simulate a selection bar in a looper
|
|
Unit examples (WEBDEV): The Looper control (modify the number of rows displayed)
[ + ] This example explains how to modify the number of rows displayed in a looper.
|
|
Unit examples (WEBDEV): The Ajax Looper control
[ + ] This example explains how to use the Ajax looper. This example allows you to: - Clear the looper - Fill the looper - Sort the looper
|
|
Unit examples (WEBDEV): The Ajax Looper control in PHP
[ + ] This example presents the use of Ajax loopers in PHP. This example allows you to: - Clear the looper - Fill the looper - Sort the looper
|
|
Unit examples (WINDEV): The Looper control
[ + ] Using the Looper control. You have the ability to add a row with LooperAddLine. The following syntax is used to retrieve the existing values: AttributeName[Subscript]
|
|
Complete examples (WEBDEV): webmillion
[ + ] The following topics are presented in this example: 1/ Using queries 2/ Using "browsing" loopers in automatic browse 3/ Using "browsing" loopers in manual browse Summary of the example supplied with WEBDEV: This Web application, powered by WEBDEV, is used to display, find and order tee-shirts. Once the order is placed, you have the ability to use the PayBox module for secure payment. This example contains a page used to generate a data file containing an important number of records.
|
|
Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS. It is used o: - list the contacts found on the phone - call the contacts - send SMSs to the contacts - ...
|
|
Cross-platform examples (WINDEV Mobile): WM ToDo List
[ + ] This example is a manager of To-Do Lists. The project is using the gestures in the loopers in order to move and delete the lists and tasks. The data is stored in a HFSQL database.
|
|
Cross-platform examples (WINDEV Mobile): WM Registered
[ + ] This application is an attendance manager. It allows you to list the persons who attended a meeting. The database is filled beforehand with the list of registered persons. You have the ability to find a person by using his/her name. The following topics are presented in this example: 1/ using a browsing looper based on a query 2/ using a database in HFSQL format.
|
|
Complete examples (WEBDEV): Photo_Gallery
[ + ] This example is a site of photo gallery and it includes 2 main sections: - the "visitor" section, developed in AWP mode therefore referenceable. - the management section, developed in standard WEBDEV mode therefore secured. Among the available features, you will find: - an organization of your photos by album - different modes for presentation the photos: slide show mode, scroll mode, detailed mode - a link to the social networks - the ability for the visitors to comment your publications - a contact form - for the site management, you have the ability to upload your photos, to describe them, to turn them around, to encrust a watermark..
|
This page is also available for…
|
|
|
| |
| | https://youtu.be/V8VQ81U69Fo
https://windevdesenvolvimento.blogspot.com/2019/10/dicas-2354-windev-webdev-mobile-looper.html
//LOOPER LIST_CLIENTE.DeleteAll() // OU Versao anterior 24 // ListDeleteAll(LIST_CLIENTE) FOR EACH cliente where "Representante_id="+LOOP_REPRESENTANTE LIST_CLIENTE.Add(cliente.nome) // PARA VERSOES ANTES DA 24 // ListAdd(LIST_CLIENTE,cliente.nome) END
|
|
|
|
| |
| |
| |
|
| | https://youtu.be/vf06h8Nh8oc
https://doc.windev.com/en-US/?1013099&name=Looper_control |
|
|
|
| |
| |
| |
|
| | https://youtu.be/ptvqqaQDFHI https://youtu.be/DnfiNwoXZis https://youtu.be/8YdlxOrXW3w |
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|