ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / Reserved keywords
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
The MyHostControl keyword is used to handle the WEBDEV Page control from the code of the page it displays.
The only possible syntax options are:
  • comparisons with NULL values.
  • calling a procedure.
Example
// If integrated in WINDEV or WINDEV Mobile
IF InPageWithinWindowMode() THEN
// Call the WINDEV application to include the selected option in the invoice
MyHostControl.RequestBilling(ATT_Sender[gnRowNum], ...
ATT_Summary[gnRowNum], gnRowNum, ATT_Report[gnRowNum], sGoodieName)
END
Syntax

Checking if the page is used by a WEBDEV Page control

IF <WEBDEV control>.MyHostControl = Null THEN
   ...
   // The page is not displayed in a WEBDEV Page control
   ...
END

IF <WEBDEV control>.MyHostControl <> Null THEN
   ...
   // The page is displayed in a WEBDEV Page control
   ...
END

Calling a procedure of the window

MyHostControl.ProcedureName()

Calling a procedure of the window with a return value

AFTER MyResult = MyHostControl.ProdcedureName() DO
// Use of the result
END
Remarks
  • You can call the browser procedures of a page from a WINDEV window using the Page property.
  • Call to a procedure: It is possible to pass parameters to the procedure called.
  • In syntax 3 ("Calling a procedure of the window with a return value"), the return value is received asynchronously
Related Examples:
WW_WEBDEVinWINDEV Training (WINDEV): WW_WEBDEVinWINDEV
[ + ] This example shows the implementation of "WEBDEV in WINDEV".
It explains how to insert a WEBDEV page, a site or part of a site in a WINDEV window and how to establish two-way communication between them in WLanguage.

There are multiple use cases for the integration of a WEBDEV page directly in a WINDEV window:
- merge existing WINDEV and WEBDEV elements,
- progressively webify an application. In this case, simply develop new features in WEBDEV and integrate them into existing WINDEV applications.
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment

Last update: 12/18/2023

Send a report | Local help