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 / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control deslizante (WEBDEV)
  • Item characteristics
  • Handling the item and the slider
  • Updating the Slider control with the value from the item
  • Updating the item with the data from the Slider control
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
Binding a WEBDEV slider to an item
Item characteristics
A WEBDEV slider can be bound to an item in a data file, query, etc.
For a linear slider, the item contains the value defined by the slider cursor.
The characteristics of the item are as follows:
  • the item is an Integer.
  • the item contains the value of the slider cursor position. This position corresponds to the slider value.
  • the item value must be between the minimum and maximum value of the slider.
For a range slider, two items are bound to the control:
  • an item containing the value of the main cursor (lower value).
  • an item containing the secondary value (upper value).
The characteristics of the items are as follows:
  • the items are Integers.
  • the items contain the values of the slider cursors. These values correspond to the minimum and maximum values of the slider.
  • the value of each item must be between the minimum and maximum value of the slider.
Handling the item and the slider

Updating the Slider control with the value from the item

Case 1: page fields are associated with fields in a data file (Binding)
All the controls bound to an item in the data file (or a related file) will be updated by FileToPage.
Case 2: page fields are not associated with fields in a data file
A value must be assigned to each control using the following syntax:
  • Linear Slider control:
    <Slider control> = <Data file>.<Item>
  • Range Slider control:
    <Slider control>.LowerValue = <Data file>.<Item1>
    <Slider control>.UpperValue = <Data file>.<Item2>

Updating the item with the data from the Slider control

Case 1: page fields are associated with fields in a data file (Binding)
All the items in the data file (or a related file) that are bound to a control in the page will be updated by PageToFile.
Case 2: page fields are not associated with fields in a data file
The value of each control must be assigned to each item using the following syntax:
  • Linear Slider control:
    <Data file>.<Item> = <Slider control>
  • Range Slider control:
    <Data file>.<Item1> = <Slider control>.LowerValue
    <Data file>.<Item2> = <Slider control>.UpperValue
Versión mínima requerida
  • Versión 18
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 05/12/2024

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