cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access the component controller

Former Member
0 Kudos

Hiii,

I have the following problem.

I have enhanced a context node. I will get a reference to my component controller in one of the getter method of an attribute from my enhanced context node.

I know how to get a reference to the component controller, for example in the methode DO_INIT_CONTEXT, you can do it as follows.

*lr_coco TYPE REF TO CL_BUD_BSPWDCOMPONEN_IMPL "Implementation class of the component controller

lr_coco ?= me->comp_controller. *

I think the problem is, I am trying to access the component controller from my context node class.

Can anyone help me to solve the problem ?

Regards,

Harris

Edited by: Harris81 on Jul 6, 2010 7:22 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

Use the context node attribute "OWNER" to access the comp controller.

Regards

Prasenjit

Former Member
0 Kudos

Hii,

could you provide me an example code?

Regards,

Harris

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

Check the where used list of the context node attribute OWNER. It carries the value/instance of the view controller. But unfortunately the view controller attribute COMP_CONTROLLER is protected so you cannot access it from Context node.

Try Custom controllers instead.

Regards

Prasenjit