cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence of Methods Calls

Murali_Shanmu
Active Contributor
0 Kudos

Hi

I still need more clarity on sequence of method calls. I have 2 views within an Application which uses a component controller. I have mapped the I/O plugs to navigate from View 1 to View 2. User clicks on a button on view 1 and navigates to View 2. User again clicks on a button in view 2 to navigate to View 1.

Now I need to know thge sequence of method calls starting from init() for component controller, init() of view 1 , user clicking a button, firing of plug methods, calling of init() methods of views, doModify() and so on.. I hope I made myself clear.

Regards,

Murali.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Murli

When you first call the view 2 by clicking on a button the init method will be called and then modifyView will be called and then you navigate to view 1 again and if again you click to navigate to view 2 at that time only modifyView will be called.

In the particular session with a client init method is called only once in that particular session. for that view for that client.

If you have any confusion tell me.

Ninad

Murali_Shanmu
Active Contributor
0 Kudos

Yes, I agree with you. But what about outBound plugs of View 1 and inbound plugs of View 2 ?

Now on click of a button, we have init(), doModify() nad inBoundPlug() in View 2.. What could be the order ?

Murali.

Former Member
0 Kudos

Hi Murali

You can check it by creating a test attribute in global controler and just append the values in particular methods saying in "in init method", "in inbound method", .....

and then display that variable on view2 and you will get which method called first and which one later.

Note: I am not able to test it right now as there is some problem with my server.

Ninad