Iam in the initial stage of learning ABAP web dynpro .Kindly provide the solution for my querries.
1. why do we need to map context of component controller with view context?
2.why do we need to bind the view context with UI element?
3.Diff between view controller and component controller.
consider you are having 2 views and wish to pass data between these 2.
then you will declare a node and attributes in it in the component controller.
this will access as a global access point.
you have to map this node to both of your views.
so view1 will set a value in this node.
this will be automatically reflected in your component controller.
so when view2 access its node, this will refer to the data in the component
controller. this is the reason for mapping the component controller.
view controller is local to the view.
alex b justin
1) Context mapping (between to contexts) is used to share data between two controllers.
2) Data binding (between context and UI elements) is used to display data on and update data from the UI (screen)
3) A view controller is the controller available with the view (local to the view). A component controller is the controller available for the component (global for the same component - can share data through interface controller)
You should take a look at the <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm">help</a> that's available online.