|
|
|
|
|
- Using the BrowsedFile property
- Changing the properties linked to the iteration of a control based on a data file
- Type of iteration
- Manipulating the controls based on a data file via the properties
- Limits
BrowsedFile (Property) In french: FichierParcouru
The BrowsedFile property gets and sets the data source used to display records in controls based on a data file: - Table or TreeView Table controls based on a data file.
- List Box or ListView controls based on a data file.
- Combo Box controls based on a data file.
- columns of type Combo Box based on a data file.
- Looper controls based on a data file.
- Organizer controls based on a data file.
- Scheduler controls based on a data file.
- TreeView controls based on a data file.
- Organization Chart controls based on a data file.
- Pivot Table control fields.
- Kanban controls based on a data file.
- internal windows (if the swipe gesture is enabled).
- supercontrols.
This data source can be: - a data file or a query. The records displayed are from this data file or query.
- a variable (array, class member, member of an advanced type, etc.).
This data source is defined in the control description ("Content" tab).
TABLE_Table1.BrowsedFile = "Customers"
TABLE_Table1.BrowsedFile = "Qry_Customers"
TABLE_Table1.BrowsedFile = ":gAContact"
Syntax
Getting the data file, query or variable used as data source Hide the details
<Browsed element> = <Control used>.BrowsedFile
Changing the data file, query or variable used as data source Hide the details
<Control used>.BrowsedFile = <New data source>
Remarks Using the BrowsedFile property The BrowsedFile property can be used both in programmed and automatic iteration operations If the BrowsedFile property is used to change the data source used, the iteration operation starts over again. For a Table control, this operating mode is identical to the use of TableDisplay associated with the taStart constant. Changing the properties linked to the iteration of a control based on a data file To change multiple properties ( BrowsedItem, Filter and BrowsedFile) it is recommended to: - Stop the iteration by assigning an empty string ("") to the BrowsedFile property.
- Change the relevant properties.
- Restart the iteration with the BrowsedFile property.
This method is used to optimize the modifications performed. Each one of the modifications made individually restarts the iteration. These operations can become quite slow when they are performed on large data files. Type of iteration - Automatic traversal: WINDEV, WEBDEV and WINDEV Mobile support data file traversal and data display in the field. No specific programming is required.
If the control can be sorted (table...), the sort is performed on the search item defined in the "Content" tab of the element description. If a filter is specified ("Filter on the search item" in the "Content" tab of the object description), this filter is used. - Programmed path: The developer must program the path of the data file and the display of data in the.
A programmed iteration allows you to sort and filter records with precision. However, a programmed iteration is slower and more complex than an automatic iteration.
Manipulating the controls based on a data file via the properties - The records displayed in the browsing controls come from the data file or query specified by the BrowsedFile property.
- The sort direction is defined by the BrowsedItem property.
- Depending on the type of control, the records can be filtered using the Filter property or the HFilter function.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|