|
|
|
|
|
- Operating mode
- Equivalences
ProgressBarExecute (Function)
Advertencia
A partir de la versión 24, GaugeExecute se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por ProgressBarExecute.
Starts a long browser process and fill a Progress Bar via AJAX according to the progress of this process. In this case, the browser process is divided in a set of small browser processes. The execution of each small process is used to fill the Progress Bar. Remark: This function can be used in a PHP or AWP site.. // Browser code ProgressBarExecute(PROGBAR_NoName1, UPD_ProgBar, 0, 100, 10)
// Browser code of the procedure called by the ProgressBarExecute PROCEDURE UPD_ProgBar(nValue) // Optional process used to start a server process AJAXExecute(ServerProcess)
// Browser code arrValues is array of 6 strings arrValues[1] = "image1.jpg" arrValues[2] = "image2.jpg" arrValues[3] = "image3.jpg" arrValues[4] = "image4.jpg" arrValues[5] = "image5.jpg" arrValues[6] = "image6.jpg" ProgressBarExecute(PROGBAR_NoName1, UPD_ProgBar, arrValues)
// Browser code of the procedure called by the ProgressBarExecute PROCEDURE UPD_ProgBar(nValue) // Optional process used to start a server process AJAXExecute(ServerProcess)
Sintaxis
Modifying the Progress Bar via a procedure started on a regular basis Ocultar los detalles
ProgressBarExecute(<Progress Bar control> , <WLanguage procedure> , <Lower bound> , <Upper bound> [, <Step>])
<Progress Bar control>: Control name Name of the Progress Bar control to use <WLanguage procedure>: Procedure name WLanguage procedure in browser code called for each iteration. This procedure has the following format:
PROCEDURE <Procedure name>(<Value>) <Value> corresponds to the current position in the iteration. <Lower bound>: Real Minimum value transmitted to the procedure. <Upper bound>: Real Maximum value transmitted to the procedure. <Step>: Optional real Step for modifying the value between each call to the procedure. This parameter is set to 1 by default.
Modifying the Progress Bar via a procedure started for each array element Ocultar los detalles
ProgressBarExecute(<Progress Bar control> , <WLanguage procedure> , <Array>)
<Progress Bar control>: Control name Name of the Progress Bar control to use <WLanguage procedure>: Procedure name WLanguage procedure in browser code called for each array element. This procedure has the following format:
PROCEDURE <Procedure name>(<Value>) <Value> corresponds to the current array element. <Array>: Array variable Name of the Array variable containing the values that must be transmitted to the WLanguage procedure. Observaciones Operating mode In browser code, no browser process can be run in background in the context of the page. Indeed, any process locks the refresh of the browser and therefore does not allow the Progress Bar to be refreshed. ProgressBarExecute calls a browser WLanguage procedure on a regular basis and triggers the refresh of the Progress Bar between each call. Therefore, a long process must be divided into several steps. These steps are called one by one by the browser WLanguage procedure. If a server process must be performed, it can be started by AJAXExecute used in the code of the browser WLanguage procedure. The function ProgressBarExecute is an asynchronous function: it starts processing and ends immediately. Therefore, when the function returns, the long process may not be ended yet. Equivalences The function ProgressBarExecute function is equivalent to the following codes: First syntax: FOR Value = <LowerBound> TO <UpperBound> STEP <Step> <Procedure>(Value) END Second syntax: FOR EACH Value OF <Array> <Procedure>(Value) END Warning These codes are synchronous and therefore do not refresh the ProgressBar. Clasificación Lógica de negocio / UI: Código UI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|