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