cancel
Showing results for 
Search instead for 
Did you mean: 

Order of execution of used DCs(doModifyView) in a Main DC

Former Member
0 Kudos

Hello all,

I am working in an application using webdynprojava.

The Application has a main DC and this main DC uses four seperate DCs as used DCs.

We have code written in doModifyView in all the respective DCs(views). And all those are executing in specific order.

My question is,

what decides the order of execution of used DCs(doModifyView).

If any one has any knowledge on the above querry please provide your suggestions

Thanks

Uvendu Bala

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Uvendu,

The wdDoModifyView is called everytime just before the view is rendered on the screen. After any event on the view say like a selection of a dropdown, radio button, checkboxes etc. the view is rendered again. So the wdDoModifyView will be called after every event and action on the view by the framework. The firstTime variable specifics whether the method is called for the first time in the life cycle of the view.

Generally, it is used for dynamic web dynpro programming. You can read the following link in help.sap.com for more information:

http://help.sap.com/saphelp_nw04/helpdata/EN/4f/07cf3dd28b5610e10000000a114084/frameset.htm

Regards,

Kartikaye

Former Member
0 Kudos

Hi Karthik,

In our scenario we need not to restrict any code execution from Used DCs. Used DC 1 we will get some values which has to used at Used DC 2, 3, & 4. If Used DC 3 executes first before executing Used DC 1, there is no use right.

If we know which makes the execution sequence of Used DC's then we will make the changes accordingly.

Please let us know which criteria/settings impact the execution sequence of Used DC's .

Thanks,

Uvendu Bala.

Edited by: uvendu bala on Jun 5, 2009 8:55 PM

Former Member
0 Kudos

Hi Uvendu,

From what you mentioned, you are using 4 DCs as Used DCs in a the main DC.

Say you have view1 in used DC1,view2 in used DC2,view3 in used DC3 and view4 in used DC4.

If during the application execution view4 appears before others then the wdDoModifyView of view4 is called first.

The wdDoModifyView is called just before the view is displayed in the browser. Hence, the order of execution of the wdDoModifyView will depend on the order the views are being displayed to the end user.

If say, you just calling a method in the component controller in DC1 means that the wdDoModifyView of view1 will not be called.

Regards,

Kartikaye

P.S :- Please grant points for correct or helpful posts.