cancel
Showing results for 
Search instead for 
Did you mean: 

Resue of Custom Controller to another webdynpro component

Former Member
0 Kudos

Hello,

I would like to use all the methods and context of one custom controller residing in one webdynpro component from another view residing in another webdynpro component.

Could you please give me an idea asto how this can be achieved?

For this I have added the first webdynpro component(which has the custom controller) to its public part and added the first component to the other webdynpro component(which will resue the previous one) as a used DC.Now I want to access all the methods of this custom controller in the view of this second component.

Thanks and Regards,

Arya

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

Hi

To make uses of component and its other controller u have to deal with [ Interface controller|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f07c3625-c971-2910-3a9c-ce131487f82c]

For [Custom Controller|http://help.sap.com/saphelp_nw04/helpdata/en/c4/862594e85911459301aa71a2b7b6b4/frameset.htm] it is nothing but a separation of the component controller task into unit for example want to implement OVS ,so put it in one dedicated custom controller etc.

Best Regards

Satish Kumar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

To get the custome controller write the following code in the view.

wdThis.wdGet<cust Controller name>.get<method>

PS: Please add this custom controller as the required controlller list of your view.

Jithin