cancel
Showing results for 
Search instead for 
Did you mean: 

diff between Component controller,Custome controller and View controller

Former Member
0 Kudos

hi,

Can any body tell me the following details,

1.difference between the Component controller,Custome controller and View controller in WD-ABAP.?

2.what is Lead Selection?

Regards,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ravi.

The component controller is visbile to all views in a component. So all context nodes and methods you create here can be accessed from all views in the component. This way you can share data between the views by mapping context nodes or thru method calls. You can also mark methods and nodes as interface so that they are acessable from other components that define component usages to this cmponent.

Custom controller is quiet similar to the component controller. You can define it if you want to group some views with a custom controller for a certain functionality.

If you want to access a custom controller in a view you have to define the usage first on the properties tab of the view.

A view controller is only visible in the view itself. So all methods or context nodes you define here are only accesable by the current view.

The lead selection is in most cases the current selected element in a context node. The lead selection is used by many UI elements to determine which element has to be shown (e.g drop down).

If you have a table with single selection the current selected table row is the lead selection element of the bound context node.

SO you can get the lead selection element easily in any mthod by calling context_node->get_element( ).

Hope this clears your questions.

Cheers,

Sascha

Answers (0)