Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

diff b/n initialization event and default keyword

Former Member
0 Likes
677

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

Hi

In your situation there's any different.

That event can initialize any variable of the program, in particular a parameter too.

Max

4 REPLIES 4
Read only

Former Member
0 Likes
641

Hi

In your situation there's any different.

That event can initialize any variable of the program, in particular a parameter too.

Max

Read only

Former Member
0 Likes
640

Hi max bianchi,

will u plz b clear some what.

Read only

0 Likes
640

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.

Read only

0 Likes
640

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