Hey all.
Consider the following exam question.
'D' is correct!
Why would you need to set the default value of a local variable in an on initialize event???
Can't you just set the variable a default value in the variable properties?
Hello Joseph Robins,
I hope this message finds you well. In resume, this are the most relevant use cases you can implement with The OnInitialize event handler:
There are also some notes you should take into account, such as:
Anyway, if you need more information regarding events, check the following link:https://success.outsystems.com/documentation/11/developing_an_application/implement_application_logic/screen_and_block_lifecycle_events/
Best regards, Ana Agostinho
Hi @Joseph Robins
Suppose your are getting some value through input parameter based on that you need to set local variables. Which is not possible through local variables default values(Conditional values).
Regards
Krishnanand Pathak
True, but the question should state “Considering the oninitialise of event of a screen where input parameters are passed in”...
Poor question format if you ask me.
besides the example of it depending on some input,
So i don't really think it is a poor question
Dorine