PDA

View Full Version : Progress Bar feeded by Ajax ?


ThierryC
03-05-2010, 02:49 AM
Hi all,

i'd like to show a progress bar to users, showing the progress of a job on the ISeries;
most examples found on the internet use data in the javascript to determine the progress bar , but i'd like to do something similar , but then depending on how far a job on the iseries has come.

has anyone already done such thing
any good advice or best practice is welcome..

thx

richard.milone
03-05-2010, 09:46 AM
For displaying the progress of certain long running batch jobs I have the RPG program continuously update a session variable with a number from 0 to 100 indicating its estimated progress. Then your front-end process can make a call every 10 seconds or so to the same variable and update a progress bar. I'm sure there are other ways but this is the one I use. You can get and save session variables with vvUtility_saveSessVar and vvUtility_getSessVar.