Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:set_progress [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1a_f:a:set_progress [2023/05/09 01:46] (current) sean
Line 1: Line 1:
 +{{tag>Index Action Action_List Process UI Version:v8.6}}
 +====== SET PROGRESS ======
 +
 +This action sets progress of a process running in the background mode. The action has two parameters separated by comma. The first parameter is an expression that calculates the progress in percent. This parameter is mandatory. The second parameter is an expression that calculates a string to be shown to the user 
 +
 +{{page>[[docs:5000_videos:600_long_running_processes|}}
 +===== Syntax =====
 +''SET PROGRESS ArithmeticExpression() [ '','' ArithmeticExpression()]''
 +
 +===== Example ===== 
 +
 +<code aim>SET PROGRESS 30 </code>
 +
 +<code aim>SET PROGRESS 30, 'Progress is 30%' </code>
 +
 +<code aim>SET PROGRESS SessionObj.CurNmb/SessionObj.Total*100, 'Handling record ' + SessionObj.CurNo + ' of ' + SessionObj.Total </code>
 +
 +