cancel
Showing results for 
Search instead for 
Did you mean: 

When does the View Controller to Component Controller mapping called

Former Member
0 Kudos

Dear SDN Community,

When we map the View controller context with the Component controller context, during run time at what specific point is this mapping initialized. Is it after the View's WdDoExit() method is called and before another view gets loaded ? And what is the Vice versa case, when the view gets data from the component controller. Can you please throw some light here.

Thanks!

Surya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i think the context get initialized during wdDoInit() of the component controller. If the context is mapped with View controller, the data is stored in the component controller context. View can access during its life cycle.

Answers (3)

Answers (3)

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi

If you performed mapping between a view controller and the component controller.

The webdynpro Frame work generates some xml files for each view .It generates not only the ViewController java class.It generates some xml and xlf files.One of the xml file in generated files indicates the Context Structure how the context is there and relation with all context attr and mapped context .It stores each and every point.This file is generated when you create a view.When the View life cycle starts ,the frame work automatically determines that view context and every thing with the help of xml files.As of my knowledge When ever a view life cycle starts all these files are available to the frame work to refer the context.

Regards

Kalyan

Former Member
0 Kudos

Hi

This happens whenever there is any action that happens in your view.

This means whenever there is any action, the view controller context values are mapped to the component controller context values.

I hope you find it useful.

Regards

Avinash Yadav

Former Member
0 Kudos

Hi

A Web Dynpro component’s lifetime begins the first time it is called at runtime, and ends with the lifetime of the Web Dynpro application that called and thereby instantiated the component. For embedded components this means that during the lifetime of the embedded component, they are not instantiated until the moment when they are required. Their lifetime ends, however, at the same time as the embedded component when the Web Dynpro application that was originally called is ended.

Every Web Dynpro application has at least one view. The layout of a view is made up of different user interface elements.In addition to the visible part, the layout, a view also contains a controller and a context. The data to which the elements of the view can be bound are stored and managed in the view context,

A Web Dynpro component’s lifetime begins the first time it is called at runtime, means the context will be loaded only when it gets the controll, and a view context will be populated only after the view is called, after that when ever in any of your action you can modify the data inyour context through coding

You can also refer

1. http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm

2. http://help.sap.com/saphelp_nw04/helpdata/en/c7/9b8cbc18c75c46bf6f58bd656e1aa8/content.htm

Regards

Abhijith YS