ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / HTML Display functions
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 HTMLControlValue(HTM_Display, "LOGIN") <> "" THEN
HTMLControlValue(HTM_Display, "LOGIN", NetworkUser())
END
HTMLControlValue(HTM_Sites, "input4")
IF ErrorOccurred THEN
Trace(ErrorInfo()) // ex: The <"input4"> control does not exist in the page.
RETURN
ELSE
HTMLControlValue(HTM_Sites, "input4", sControlValue)
END
Syntax

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

<Result> = HTMLControlValue(<HTML Display control> , <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

HTMLControlValue(<HTML Display control> , <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
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help