PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Enables the refresh of an Ajax indicator.
Caution: This function cannot be used in a PHP or AWP site.
// Displays the progress bar in the middle of the screen in a cell with DDW
CellDisplayDialog(CELL_ProgBar)
// Starts monitoring the progress of the copy
GaugeActivate(PROGBAR_Copy)
// -- Server code of BTN_Process button
FOR I = PROGBAR_NoName1..MinValue _TO_ PROGBAR_NoName1..MaxValue
PROGBAR_NoName1 = I
Multitask(-1)
END

// -- Browser code of BTN_Process button
GaugeActivate(PROGBAR_NoName1, 10)
Syntax
GaugeActivate(<Progress Bar Control> [, <Period> [, <Automatic Stop>]])
<Progress Bar Control>: Character string (with or without quotes)
Progress Bar control to use.
<Period>: Optional integer or optional Duration
Period for refreshing the progress bar in hundredths of a second. This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • Versions 23 and later
    the indication of duration in clear ('1s', '10cs' or '10ms' for example).
    New in version 23
    the indication of duration in clear ('1s', '10cs' or '10ms' for example).
    the indication of duration in clear ('1s', '10cs' or '10ms' for example).
This period is set to 1000 hundredths of a second by default.
<Automatic Stop>: Optional boolean
Indicates whether the refresh of the progress must be stopped automatically (True, default value) at the end of the server call.
Remarks
The refresh of the progress bar is regularly performed from the browser by interrogating the server.
In server code, the position of the progress bar is changed by modifying the value (..Value property) of the Progress Bar control.
The refresh being provoked by the browser, the modifications in server code may not be immediately applied to the browser control.
Caution: The server should not be called too often to avoid performing too many requests.
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 16
Comments
Click [Add] to post a comment