Create a function at your own code unit with a parameter then place below code at the function which u created newly.befor that create a global variable called window with data type Dialog.
Hi Shona
The windows are used to show current record which is in progress.so your requirment is
need to show the record with a status bar to show the % of records were completed.for your practice purpose lets create a report and and step by step i ill explain ok.forgot about my previous post.
Step 1
Creat a simple report to show the list of customers.And name the report as CustomerListI using the data item 18 and place Customer No and Customer Name fields in report
Step2
create the following variables in newly created report
Run your report now you can see the process window with status bar
#1################### mean yu are creating a filed in the window in run time with the control number 1
@2@@@@@@@@@@@@@ mean you are creating a process Bar with control number 2 in run time
window.UPDATE(1,Custname); this code will unpdate the customer name at the control1
window.UPDATE(2,ROUND(LineCount/NoOfRecords * 10000,1)); this will update the process bar
i have create an variable custname as text and i tried running that report! i could see an dialog box which was rapidly runing the process { the ones we see when we try to login in, the process bar with green liness} but it wasnt clear. it was running very fast. then it produced my report with name and no! where did i go wrong?
So your seeing the process bar with green blocks.so that the problem is the window is opening every time it should be open only one time so cut the code window.OPEN(’#1################### @2@@@@@@@@@@@@@’); from Body (2) - OnPreSection()
and paste it in Customer, Header (1) - OnPostSection()
2.Yes the report will print its records. for your practice purpose i was asked you to creat a report you don’t want to print the report?
creat a code unit and copy paste the below coding at OnRun() of the newly created code unit.Befor that creat two variables window with data type Dialog and I with data type integer.
Yes if you reduce the no of ‘@’ or ‘#’ used, then the size of the dialog window will be reduced
If you use the Progress window in pre data item it will run only once per report. And if you use Progress bar in the section triggers, then it will run based on the section for example if you used in the body section of a report it will run each and every record of the data item
'/’ will not do any changes, it was mistakenly included