Pre-requisite: You must be comfertable with the concept and working of hook methods. If not Click Here.
So now as hook methods are no more an alien term to you, we will see the triggering of hook methods in few special cases.
Case 1: When user click on some button, but after action control remains on the same screen.
WDDOBEFOREACTION
ONACTION<Action_name>
Case 2: When user click on some button and a next view gets open.
WDDOBEFOREACTION (of first view)
Happy Learning :)
So now as hook methods are no more an alien term to you, we will see the triggering of hook methods in few special cases.
Case 1: When user click on some button, but after action control remains on the same screen.
WDDOBEFOREACTION
ONACTION<Action_name>
WDDOAFTERACTION
WDDOBEFORENAVIGATION (COMPONENTCONTROLLER)
WDDOMODIFYVIEW
WDDOPOSTPROCESSING (COMPONENTCONTROLLER)
Case 2: When user click on some button and a next view gets open.
WDDOBEFOREACTION (of first view)
ONACTION<Action_name>
WDDOAFTERACTION (of first view)
WDDOBEFORENAVIGATION (COMPONENTCONTROLLER)
WDDOINIT (of next view, because that view is being loaded
for the first time)
for the first time)
WDDOMODIFYVIEW (of next view)
WDDOPOSTPROCESSING (COMPONENTCONTROLLER)
Case 3: When user click on some button and a popup gets open as
a result.
WDDOBEFOREACTION (of first view)
ONACTION<Action_name>
WDDOAFTERACTION (of first view)
WDDOBEFORENAVIGATION (COMPONENTCONTROLLER)
WDDOMODIFYVIEW (of first view)
WDDOPOSTPROCESSING (COMPONENTCONTROLLER)
WDDOINIT (of popup view)
WDDOBEFORENAVIGATION (COMPONENTCONTROLLER)
WDDOMODIFYVIEW (of first view)
WDDOMODIFYVIEW (of popup view)
WDDOPOSTPROCESSING
(COMPONENTCONTROLLER)
Case 4: When user clicks on OK button of popup screen. On click of
this button popup screen will disappear and control will come to the main
screen. This OK button’s action will be handled in main screen. So in this
scenario.
WDDOBEFOREACTION (of first view)
WDDOBEFOREACTION (of popup view)
ONACTIONOK (action method of OK button, which is in first
view)
WDDOAFTERACTION (of first view)
WDDOAFTERACTION (of popup view)
WDDOBEFORENAVIGATION (COMPONENTCONTROLLER)
WDDOMODIFYVIEW (of first view)
WDDOMODIFYVIEW (of popup view)
WDDOPOSTPROCESSING (COMPONENTCONTROLLER)
WDDOEXIT (of popup view)
WDDOBEFORENAVIGATION (COMPONENTCONTROLLER)
WDDOMODIFYVIEW (of first view) : This is again coming
into picture
because after popup view finally control is going into main view.
because after popup view finally control is going into main view.
WDDOPOSTPROCESSING (COMPONENTCONTROLLER)