AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos HTML
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Used to identify or modify a control in an HTML form contained in an HTML Display control.
Example
IF HTM_Display.ControlValue("LOGIN") <> "" THEN
HTM_Display.ControlValue("LOGIN", NetworkUser())
END
HTM_Sites.ControlValue("input4")
IF ErrorOccurred THEN
Trace(ErrorInfo()) // ex: The <"input4"> control does not exist in the page.
RETURN
ELSE
HTM_Sites.ControlValue("input4", sControlValue)
END
Syntax

Identifying the value of a control in an HTML form Hide the details

<Result> = <HTML Display control>.ControlValue(<Control in the page>)
<Result>: Character string
  • Value of the control in the HTML Display control,
  • Empty string ("") if an error occurs (e.g. if the control is not found in the page). In this case, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<HTML Display control>: Control name
Name of the HTML Display control used.
<Control in the page>: Character string
Name of the control contained in the HTML page displayed by the HTML Display control.

Modifying the value of a control in an HTML form Hide the details

<HTML Display control>.ControlValue(<Control in the page> , <Value>)
<HTML Display control>: Control name
Name of the HTML Display control used.
<Control in the page>: Character string
Name of the control contained in the HTML page displayed by the HTML Display control. If the control is not found, a non-fatal error will occur.
<Value>: Character string
Control value to be modified.
Remarks
  • Important : In order for this function to be run in the context of the HTML page displayed in the HTML Display control, the control should be accessible using JavaScript. There should be no access restrictions on this page.
  • This function allows you to automate processes in the Web page displayed in an HTML Display control.
  • The control is searched by its name and then by its ID. The name of the control (or its ID) can be known by editing the source code of the HTML page.
  • Caution: HTML names are case-sensitive.
Business / UI classification: UI Code
Component: wd290obj.dll
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

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