cancel
Showing results for 
Search instead for 
Did you mean: 

Order of methods in WEB UI

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

deepika_chandrasekar
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks everyone for responses.

Yes bala..i think you are right..do_finish_input will never call beofre do_init_context, but it will call before do_init_context if you are moving from one view to another for the first view.

Thanks & Regards,

Mamta

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks Bala.

My issue is resolved now.

Thanks & Regards,

Mamta

Answers (3)

Answers (3)

former_member188098
Active Contributor
0 Kudos


best way put debugger in all these methods and check the sequence.

it will give more clear idea.

Regards

kumar5
Active Contributor
0 Kudos

Hi,

Below is the sequence:-

DO_VALIDATE_INPUT

DO_FINISH_INPUT

DO_INIT_CONTEXT

DO_CONFIG_DETERMINATION

DO_PREPARE_OUTPUT

.htm page

Former Member
0 Kudos

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.

kumar5
Active Contributor
0 Kudos

Yes Bala..I am pretty much sure about this sequence...There are different sequence on different actions in UI . I have mentioned the general one when we open any page for the first time.....Putting debugger and checking the sequence as suggested by @Harish would be the good Idea..

Former Member
0 Kudos

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.

kumar5
Active Contributor
0 Kudos

Yup Sure..never mind. Just put debugger in these methods of view 'CPG_MAIN/OPOverview ' under component 'CPG_MAIN' and then try to create an campaign from UI.....

Thanks

Kumar

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.