Skip to main content
Skip table of contents

Display a progress dialog


Display a progress dialog

The following three functions belong together and serve to graphically show the user the progress of rule-based controls which take longer (e.g. updating a shopping cart). When beginning the rule-based control, the function p$tdv:progress:start( Count , message ) must always be called. In the process loop the function: p$tdv:progress:loop( Number , Count , message ) is then called and at the end of the rule-based control the function: p$tdv:progress:end() is called respectively.

Syntax:

p$tdv:progress:start( Count , message )

p$tdv:progress:loop( Number , Count , message )

p$tdv:progress:end()

 

Argument

Type

Meaning

 

Count

Integer

Count of the data sets or actions to be processed. This value should not be modified from call to call.

 

Message

String

Message text displayed in the dialog.

 

Number

Integer

Number of the current processing stage

Example:

Message = 'Start'
Count = 40
p$tdv:progress:start(Count,message)
Message = 'Running'
Then in the process loop:
p$tdv:progress:loop(Number,Count,message)

and at the end
p$tdv:progress:end()

The dialog displayed looks like this:

Fortschritt.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.