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 / Administrar bases de datos / HFSQL / Funciones de enlace
  • Binding between a control and a WLanguage variable or between a control and a data file item
  • Types of item binding
  • Miscellaneous
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
<Page>.FromFile (Función)
ODBCNo disponible con este tipo de conexión
Automatically updates the controls of a page with:
  • the values of the bound items in the current record (loaded in memory) of the data file described in the data model editor. This operation is performed regardless of the state of the controls (grayed, inactive or invisible).
  • the values of the bound WLanguage variables. This operation is performed regardless of the state of the controls (grayed, inactive or invisible).
PHP Only the binding to the data file items is supported. Bindings to WLanguage variables are not supported in this version.
Note: The <Page>.FromFile function does not read the data file. The value of the record loaded in memory is used to update the controls. Therefore, a record must be loaded in memory previously (with <Source>.Read, <Source>.ReadSeek, <Source>.ReadFirst, etc.).
Ejemplo
HReadSeekFirst(CUSTOMER, NAME, "PAUL")
IF HFound() = True THEN PAGE_Customer.FromFile()
 
// Read the record and transfer the items to the controls
HReadFirst(CUSTOMER, NAME)
PAGE_Customer.FromFile()
Sintaxis
<Page>.FromFile([<Source>])
<Page>: Nombre de la página
Name of the page where the controls must be updated with the values of the current record in the data file. If this parameter is not specified or is an empty string (""), the page that contains the current code is used.
<Source>: Cadena de caracteres opcional
Name of the source the controls to be updated are bound to. This source can be:
  • The name of a data file: only fields linked to a field in this data file are taken into account.
  • The name of a WLanguage variable. In this case, only the controls bound to the WLanguage variable are taken into account.
    Remarks:
    • If the name of the variable is enclosed in quotes, the control will be bound to the specified variable.
    • If the name of the variable is not enclosed in quotes, the control will be bound to the variable data (e.g., a variable containing the name of another variable).
If this name is not specified, all the page controls bound to a data file item described in the data model editor or to a WLanguage variable will be taken into account.
Observaciones

Binding between a control and a WLanguage variable or between a control and a data file item

The binding between a control and a WLanguage variable or between a control and a data file item can be determined:
  • In the editor, in the control description window ("Binding" tab).
  • Programmatically, with the DataBinding property.

Types of item binding

There are two types of bindings between a control and an item
  • direct binding: In this case, <Page>.FromFile transfers the value of the items from the record loaded in memory to the bound control, without reading any values.
  • binding by reading the records in the associated data file.
WINDEVWEBDEV - Código ServidorWINDEV MobilePHPAjaxHFSQL ClassicHFSQL Client/ServerHyper File 5.5OLE DBConectores Nativos

Miscellaneous

  • Space characters in HFSQL items are kept.
  • <Page>.FromFile updates the Image controls bound to image memo items.
  • <Page>.FromFile is not available on views. The values of the items must be assigned to each control.
  • Binding with "Secure Password" items:
    • In an Edit control bound to a Password item, "*****" characters are displayed. If the Edit control is of type "Password", dots are displayed instead.
    • The value of the "Password" item cannot be read again until the user changes the password value.
    • The value of the "Password" item can still be compared to a string (e.g., "" or "1234").
Componente: wd300page.dll
Versión mínima requerida
  • Versión 24
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 07/12/2024

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