on 01-09-2014 9:49 AM
Hi Experts,
Please let me know when a component will be loaded, then what will be the sequence of calling the methods below:
a. do_prepare_output
b.do_finish_input
c.do_handle_event
d.do_config_determination
e.do_init_context
f.do_validate_input
g.if_toolbar~get_buttons
h.html page
Your answers will be really helpful to me.
Thanks & Regards,
Mamta
Hi,
First thses methods will be called when component is loading.
do_finish_input
do_init_context
do_config_determination
do_prepare_output
if_toolbar~get_buttons
h.html page
these methods will be called on certain event only.
do_handle_event - if you perform something on WEBUI (clicking button or enter )
do_validate_input - if you change something on the view then this method will be called
Regards,
Deepika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepika,
Please check again once and correct me if i am wrong.
Do_finish_input will never trigger before Do_init_context.
Do_finish_input will trigger only after the user action on the view. There will be a method DISPATCH_INPUT which is responsible for triggering the DO_HANDLE_DATA, DO_HANDLE_EVENT and DO_FINISH_INPUT methods. Dispatch_input will be called only after the user action.
Regards,
Bala.
Hi mamta,
I spoke about a single view, even i got confused when kumar said about his sequence I have mentioned the general one when we open any page for the first time.
When we open a page for the first time will do_finish_input trigger before do_init_context?
So I asked him to give an example, even i checked that component and the overview page which he specified but the end result is what i expected.
When you are navigating between two view the do_finish_input that triggers will be of the first view.. So that is after a user action on the first view. The do_init_context will be of the second view as the view is getting loaded for the first time.
Regards,
Bala.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Below is the sequence:-
DO_VALIDATE_INPUT
DO_FINISH_INPUT
DO_INIT_CONTEXT
DO_CONFIG_DETERMINATION
DO_PREPARE_OUTPUT
.htm page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Are you sure about the order which you specified above???
DO_VALIDATE_INPUT and DO_FINISH_INPUT will trigger only after user action, So that will be after the user action on the view so DO_INIT_CONTEXT will not trigger after them.
DO_INIT_CONTEXT will trigger only for the first time i.e before displaying the screen.
So i think the order which you specified is wrong. Please check once and let me know if i am wrong.
Regards,
Bala.
Hi Kumar,
Sure... ok then if you don't mind please check it once in a component by putting break point as suggested by Harish and let me know the component name in which Do_init_context trigger after do_validate_input and Do_finsh_input methods in a view, so that i will also check in the same component and then i will search for the solution for my new question why do_finish_input is triggering before do_init_context?
Regards,
Bala.
Hi Kumar,
Iam sorry kumar, can i ask you one thing have you really Checked this component and the view you specified above by putting breakpoints??
I am very much confident about my answer and check that component once when you are free.
DO_INIT_CONTEXT will trigger only once i.e for the first time( before displaying the screen ). Do_validate_input and do_finish_input will trigger after the user input ( i.e after the view gets displayed and user gives some input or makes some action ).
So Do_init_context will never trigger after the do_finish_input..
Regards,
Bala.
Hi Mamta,
This is the order of methods before displaying the view :
1) DO_INIT_CONTEXT
2) DO_VIEW_INIT_ON_ACTIVATION
3) DO_CONIG_DETERMINATION
4) SET_VIEW_GROUP_CONTEXT
5) DO_PREPARE_OUTPUT
6) .HTM Page
7) Get_XXX methods of the attributes.
After the user perform some action the order will be as follows :
1) DO_HANDLE_DATA
2) SET_XXX methods of the attributes
3) DO_VALIDATE_INPUT
4) DO_HANDLE_EVENT ( Responsible for triggering the corresponding event handler )
5) DO_FINISH_INPUT
6) DO_CONFIG_DETERMIATION
7) SET_VIEW_GROUP_CONTEXT
😎 DO_PREPARE_OUTPUT
9) .HTM Page
10) Get_XXX methods of the attributes.
The round trip methods are( i.e Methods that trigger every time ) :
1) DO_CONIG_DETERMINATION
2) SET_VIEW_GROUP_CONTEXT
3) DO_PREPARE_OUTPUT
4) Get_XXX methods of the attributes.
Regards,
Bala.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.