|
|
|
|
|
MyHostControl (Reserved word) In french: MonChampHote
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.
IF InPageWithinWindowMode() THEN
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 <Champ WEBDEV>.MyHostField = Null THEN ... // The page is not displayed in a WEBDEV Page control ... END
IF <Champ WEBDEV>.MyHostField <> 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.
- Procedure call: You can pass parameters to the called procedure..
- In syntax 3 ("Calling a procedure of the window with a return value"), the return value is received asynchronously
Related Examples:
|
Training: 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|