PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • "Request for refreshing the display" event
  • MVP: "Presenter" attribute
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 24, ExecuteUpdateUI is kept for backward compatibility. This function is replaced by ExecuteRefreshUI.
Immediately runs the event "Request for refreshing the display" of the window, page, internal window, internal page, control template or supercontrol.
If the function is called several times during a process, the refresh event will be run several times.
Note: This function is mainly used:
Android Caution: This function is available for the Android applications from version 200066.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 24 and later
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 24
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
ExecuteRefreshUI()
Syntax
ExecuteRefreshUI([<Parameter 1> [... [, <Parameter N>]]])
<Parameter 1>: Type of value expected by the event "Request for refreshing the display"
First parameter that will be passed to the event "Request for refreshing the display" of the window or page.
<Parameter N>: Type of value expected by the event "Request for refreshing the display"
Nth parameter that will be passed to the event "Request for refreshing the display" of the window or page.
Remarks

"Request for refreshing the display" event

One of the events associated with the window (or page) is "Request for refreshing the display". This event is used to group the code for refreshing the window (or page) controls: content of controls, status (visible, grayed, etc.), caption to refresh, etc.
This event may expect parameters. Simply declare a procedure in the event. For example:
// Request for refreshing the display
PROCÉDURE AskForRefresh(RefreshType is boolean)
This event is started upon request by the following functions:
  • RequestRefreshUI: Runs the event "Request for refreshing the display" at the end of the current process (asynchronous execution).
  • ExecuteRefreshUI: Immediately runs the event "Request for refreshing the display".
  • Versions 22 and later
    RequestRefreshUIParent: Runs the event "Request for refreshing the display" of the higher level at the end of the current process (asynchronous execution).
    New in version 22
    RequestRefreshUIParent: Runs the event "Request for refreshing the display" of the higher level at the end of the current process (asynchronous execution).
    RequestRefreshUIParent: Runs the event "Request for refreshing the display" of the higher level at the end of the current process (asynchronous execution).
  • Versions 22 and later
    ExecuteRefreshUIParent: Immediately runs the event "Request for refreshing the display" of the higher level.
    New in version 22
    ExecuteRefreshUIParent: Immediately runs the event "Request for refreshing the display" of the higher level.
    ExecuteRefreshUIParent: Immediately runs the event "Request for refreshing the display" of the higher level.
During the call to these functions, you can specify the value of parameters expected by the event "Request for refreshing the display".
Note: The event "Request for refreshing the display" can also be immediately run by ExecuteProcess with the following syntax:
ExecuteProcess(<Element name>, trtRequestUpdate)
WINDEVWEBDEV - Server code

MVP: "Presenter" attribute

The presenter attribute is used to associate a class of the presenter layer with a view (window, page or report). This attribute is mainly used in the global declaration of the windows generated by the MVP RAD.
For example:
PROCÉDURE WIN_Table_MyExampleFile(...
gclPresenter is PTableMyExampleFile dynamic <presenter>=Null)
Thanks to this attribute, the call to the event "Request for refreshing the display" of the window (or page) will be triggered by:
  • any call to RequestRefreshUI from a class declared as <presenter>,
  • any call from any class associated with the <presenter> class.
See MVP RAD: "Presenter" attribute for more details.
Component : wd240vm.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment