‎2006 Nov 18 1:08 PM
we can give default values to the input parameters in the selection screen using DEFAULT keyword.the same purpose is served by initialization event in report.then y we have the INITIALIZATION EVENT in reports.Is there is any other purpose of this INITIALIZATION EVENT in reports.
‎2006 Nov 18 1:16 PM
Hi
In your situation there's any different.
That event can initialize any variable of the program, in particular a parameter too.
Max
‎2006 Nov 18 1:16 PM
Hi
In your situation there's any different.
That event can initialize any variable of the program, in particular a parameter too.
Max
‎2006 Nov 18 1:26 PM
‎2006 Nov 18 1:31 PM
Look at it this way .....
If you want to do some calculations and the result should be assigned as the default value of a variable / parameter, something should be fetched from the database and use that as the default value. You cannot do that using just DEFAULT option, you will write the code in INITIALIZATION event.
If its just a matter of giving default values, you don't have to use the event.
Regards,
Ravi
Note - Please mark the helpful answers and close the thread by marking against the answer that helped you most. for some reason you have already closed the thread against yourself.
‎2006 Nov 18 1:41 PM
Hi
The event INITIALIZATION is triggered once while the report is loading: before showing the screen.
So here it should put all code it needs to be run before loading the selection-screen.
To initialize the parameters and select-options is only one of the purposes, but to decide what has to inserted in these event depends on how it want to develop a program.
U can often to do the same thing in INITIALIZATION or START-OF-SELECTION only you can decide which event is better to be used.
Max