AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades HFSQL
  • Using the BrowsedFile property
  • Changing the properties linked to the iteration of a data-bound control
  • Type of iteration
  • Manipulating the data-bound controls via the properties
  • Limits
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The property BrowseFile property lets you find out and modify the data source used to display records in fields based on a data file or variable:
  • Table or hierarchical Table fields.
  • List Box control or Image control.
  • Combo Box controls.
  • combo table columns.
  • RepeatString fields.
  • WINDEV Organizer controls.
  • the Scheduler controls.
  • WINDEV TreeView controls.
  • WINDEV Organization Chart control fields.
  • WINDEV Pivot Table control fields.
  • Kanban control fields.
  • 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).
Ejemplo
// Displays all the customers in a Table control
TABLE_Table1.BrowsedFile = "Customers"
// Displays the entire content of the Qry_Customers query in a Table control
TABLE_Table1.BrowsedFile = "Qry_Customers"

// Displays the contacts of the gAContact variable
// gAContact is a gglContact variable
TABLE_Table1.BrowsedFile = ":gAContact"
Sintaxis

Getting the data file, query or variable used as data source Ocultar los detalles

<Browsed element> = <Control used>.BrowsedFile
<Browsed element>: Character string
Name of the element used as data source for the relevant control. This element can correspond to:
  • the name of the data file or query.
  • the name of the variable. This name has the following format ":<prefix><Variable name>" or ":<Variable name>". The prefix is applied only if the code style is enabled in the project.
<Control used>: Control name
Name of the control used. The type of this control must be:
  • Table, TreeView Table.
  • List, Image list.
  • Combo Box.
  • Combo table column.
  • Looper.
  • WINDEV Organizer.
  • Scheduler.
  • WINDEV TreeView.
  • WINDEV Organization Chart.
  • Internal window.
  • WINDEV Pivot Table.
  • Kanban.

Changing the data file, query or variable used as data source Ocultar los detalles

<Control used>.BrowsedFile = <New data source>
<Control used>: Control name
Name of the control used. The type of this control must be:
  • Table, TreeView Table.
  • List, Image list.
  • Combo Box.
  • Combo table column.
  • Looper.
  • WINDEV Organizer.
  • Scheduler.
  • WINDEV TreeView.
  • WINDEV Organization Chart.
  • Internal window.
  • WINDEV Pivot Table.
  • Kanban.
<New data source>: Character string
Name of the element that must be associated with the relevant control:
  • Name of the data file or name of the query.
  • Variable name. This name has the following format ":<prefix><Variable name>" or ":<Variable name>". The prefix must be specified only if the code style is enabled in the project (whether or not prefixes are displayed).
The control will be empty if this parameter does not correspond to a valid name. The iteration will be stopped if this parameter is an empty string.
Observaciones

Using the BrowsedFile property

The property BrowsedFile property can be used for both programmed and automation browsing of the data source.
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 data-bound control

To change multiple properties (BrowsedItem, Filter and BrowsedFile) it is recommended to:
  1. Stop the iteration by assigning an empty string ("") to the BrowsedFile property.
  2. Change the relevant properties.
  3. 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 file path WINDEV, WEBDEV and WINDEV Mobile support data file browsing and display of data 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 data-bound controls 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.

Limits

The BrowsedFile property applies only to controls in a window or page. This property only applies to fields that can be linked to a data source:
  • Table and TreeView Table controls,
  • List Box control, Image control,
  • Combo Box controls,
  • Supercontrols,
  • Table columns (used to modify the data file linked to a Combo Box table column).
  • Looper controls,
  • WINDEV Organizer controls.
  • Scheduler controls.
  • WINDEV TreeView controls.
  • WINDEV Organization Chart controls.
  • WINDEV Pivot Table controls.
  • internal windows (if the swipe gesture is enabled).
  • Kanban control fields.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 03/04/2025

Señalar un error o enviar una sugerencia | Ayuda local