Refreshes a web page. If Web User Experience property = Compatible, it executes the Start, Refresh event and Load Event.
Refresh
The Refresh command executes a refresh of the web page, and causes to execute the Start, Refresh event and Load Event when the Web User Experience property = Compatible.
In Smooth models, the Refresh command causes to execute the Refresh event and Load Event. In case of executing the Refresh command in a event of a Web Component object, it executes the refresh of the web component and all its descendants. It does not execute the refresh of the parent web components.
In general, the Refresh command is used when Web User Experience property = Smooth. Otherwise, the execution of the page refresh.is automatic
Consider the following example, where a web page contains WEB COMPONENT A, and WEB COMPONENT C. WEB COMPONENT A contains WEB COMPONENT B and the Web User Experience property = Smooth
If the Refresh command is executed on a user event of WEB COMPONENT A; the following is executed:
- UserEvent Web Component A
- Refresh Web Component A
- Start Web Component B (1)
- Refresh Web Component B
- Load Web Component B
- Load WebComponent A
(1) Only if the Create function of Web Component B is executed on the Refresh event of Web Component A. Another possibility is that Web Component B is associated to the Object property of the web component control in the form of Web Component A.
There are other commands like Refresh method for Grid controls and Refresh Web Component command which allow to refresh more specific parts of the screen.
Event Execution Scheme
Refresh Form command