Hi Experts,
I am using progress bar & only issue i have is that it shows incorrect time remaining. Please refer to pic & code below & suggest a fix so as to ensure that it shows correct time remaining values.
protected void processMyFile() { SysOperationProgress importProgress = new SysOperationProgress(); #AviFiles int cR,tR; importProgress.setCaption('Importing'); importProgress.setAnimation (#AviTransfer); importProgress.setTotal(500); tR = my logic which gets total numbe of records; for (cR= 1; cR < tR ;cR ) { this.myImportProcess(); importProgress.setText(strfmt('Importing record num %1 of total records to be imported %2',cR,tR)); importProgress.setCount(counterOfRecordRows); }// for ends }
Thanks
Mav
Hi Mav,
The estimated time is calculated based on the pace of count increment for progress. Maybe you can get a more precise time if you will use incCount method after each imported row instead of setCount.
Also, why do you use constant 500 instead of real total count "tR" in SetTotal?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156