Home | Sign in | English US
  • Overview
  • How to proceed?
  • Defining an automatic data refresh
  • Use conditions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
In a dynamic WEBDEV site, the page data is refreshed during a user action.
In some cases, it may be necessary to refresh some information found in this page, without any user intervention: for example, a counter of incoming emails or a stock level. Several methods are available:
  • Use a browser timer. This solution is not recommended because it overloads the network (and the bandwidth) by server calls from a browser code to refresh the page.
  • Use the option for automatic refresh of the page. This mechanism is based on the "Server-sent events" technology (SSE). This technology allows the session (server side) to initiate the transmission of data toward the browser once the initial connection is implemented.
How to proceed?

Defining an automatic data refresh

To define an automatic data refresh in a page:
  1. Display the requested page in the page editor.
  2. Display the description window of page: on the "Page" pane, in the "Description" group, click "Description".
  3. In the "Details" tab, check "Refresh the page data from the server" and specify the refresh period (in milliseconds).
  4. Validate.
  5. Display the processes associated with the page (F2 on the page for example).
  6. Two new processes are available:
    • Refreshing the page data (server code): This process is run when refreshing the page. It is used for example to update the requested controls: filling a list, ... This process is an Ajax process.
    • After refreshing the page data (browser code): This process is run after the server process for refreshing the page. It is used to perform an additional process on the browser.
      Note: If the "Refreshing the page data (server code)" process returns True (RESULT True), the browser code is run (default case). Otherwise, the browser code will not be run.
Caution: In order for the refresh code to be run, the specified refresh period must be less than the time-out for site lifetime.
Reminder: The lifetime of the session corresponds to the "Disconnect the idle users since..." parameter specified in the administrator of the WEBDEV application server ("Configuration" tab).

Use conditions

This option is available for the dynamic WEBDEV sites developed in HTML5 and operating on the following types of browsers:
  • Google Chrome: Any version
  • Mozilla Firefox: From Firefox 6.0
  • Opera: From Opera 11
  • Safari: From Safari 5.0
  • Internet Explorer: Not supported (including IE 11)
  • Edge: Not supported
Minimum required version
  • Version 19
Click [Add] to post a comment