cancel
Showing results for 
Search instead for 
Did you mean: 

Inheritance component controller

Former Member
0 Kudos

Hi all!

Usually I use my methods of component controller(like work with popup or display messages) in every WD component.

After create new WD component I copy my methods from another controller to current.

How can I call methods from "parent" component controller in current like in OO?

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can create an interface component if you have many children components which you to have a similar interface. This is probably as close to OO style inheritance you can get with Web Dynpro Components. You can't have direct parent/child style class inheritance in WD Components. Perhaps these methods should be in a normal ABAP class and used via the Assistance Class or directly within the controller. That way you could use full class inheritance.

Former Member
0 Kudos

Thanks for answers.

Unfortunately assist class is only way to repeat use code.

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

Sorry but i am not clear with the requirement here .

what exactly you are looking for.

are you saying calling the methods of hte component controller those you can call in th econtroller using wd_this.

can you elaborate the scenario bit more.

thanks

sarb