cancel
Showing results for 
Search instead for 
Did you mean: 

difference between component controller & Custom controller

Former Member
0 Kudos

Hi all

what is the main difference b/w component controller , custom controller & interface controller.

i want to know the difference of these three in the real time environment.

if anybody explains me with any simple example then it is great help to me....

Thanks

Suresh babu.

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi Suresh,

custome controller is a special type of component controller ,you have to use if you have any common tasks b/w the diffrent components in the project.

component controller is the heart of your development component,its comes default whenever you creata a WD dc.

Interface controller is the interface to the methods ,context..ect of one the wd Compoent i.e if ou want use the methods of another controller you have to you can do that by using the interface controller of controller of which u want to access the methods.

Regards,

Govindu

Former Member
0 Kudos

Hi,

Here is the main diff. -


Custom controller: Used to exchange data between views.

Component controller: used to exchange data between components. Component controller acts as a data interface to the outside.

Component controller loaded at the initial load of the UI component.

Regards.

Sunil

Former Member
0 Kudos

Hi

just go through this forums link

u will get ur answer

Regards

Ruturaj

Former Member
0 Kudos

Hi,

You have many documents in SDN you can go through them, you will be having indepth knowledge on them. In brief, the following is the definitions

*Custom controllers*

Custom controllers are used to encapsulate units of functionality that are shared by several controllers

and require no direct user interaction. Such controllers therefore have no visual interface.

For instance, a custom controller could be used, when a BAPI is called, and the information returned

requires some sort of intermediate processing before it can be displayed.

Before implementing a custom controller, consider carefully whether its presence will simplify or

complicate the overall architecture of your application. Custom controllers should only be added in

situations that will optimize or simplify the architecture of your application.

*component controller*

The component controller is a that is automatically created when a

component is created. It is this controller that drives the functionality of the entire component.

The interface(s) that this single component presents to either the Web Dynpro Framework or the

embedding controller are defined as . There is a one to one relationship between

a component interface view and a component window.

*Interface Controller*

This controller is also a special custom controller. This is the only custom controller visible to other

components.

Regards

Raghu

Former Member
0 Kudos

Hi Suresh,

Component Controller and Custom Controller are more or less the same. Both are related to a particular component in the webdynpro application you create.

Component Controller:-

For each component of yours there will be a component controller, were in you can define context variables and methods, events etc.. This usefull while using models.

Simple example where we can see this is, when you create global context variable in this controller and map this variable to the view controller context variable of different view, which enables you to pass the value of the variable from one view to another.

Custome Controller:-

They also have the same the function but as the name suggest there function can be customised. That is we can have more than one custom controller for a component. This is usefull when we need to create seperate execute methods for inputs from model import( Both webservice and rfc call).So you can seperate each other. Example is there in the more sample codes and application section.

Interface Controller:

There is only one interface controller for a component. It is mainly used when we need to communicate between two components.There is sample application for communication between two components in the sample codes and application section.

Regards

Sreedhar.

Former Member
0 Kudos

Hi,

go through the following thread,

hope it helps you.

Regards,

ramesh

siddharth_jain
Active Contributor
0 Kudos

Hi .

Check the following threads to get some more idea:

Siddharth

Former Member
0 Kudos

Hi,

what is the main difference b/w component controller , custom controller & interface controller.

Their no difference between component controller and custom controller other than that we can have more than one custom controller.

Interface controllers are used to communicate with external entities.

some of the use of Custom controllers are used to create OVS handlers , Model execution....

Interface controllers are used to expose your context,methods events for other comps.

Regards

Ayyapparaj