cancel
Showing results for 
Search instead for 
Did you mean: 

custom controller context value attribute

Former Member
0 Kudos

Hello,

I have a custom controller with one value attribute. In the wdDoInit() method of the custom controller I can not access this attribute using:

wdContext.currentContextElement().setAttrib()

Why?

The same works without any problems using the component controller instead of the custom controller.

Thanks, cheers,

Felix

Accepted Solutions (1)

Accepted Solutions (1)

former_member206397
Contributor
0 Kudos

Hi,

I have created the custom controller and within that I have created the attribute.

Now I am able to access the attribute by using thr same code.

wdContext.currentContextElement().setAge(" ");

After creation of custom controller you just save all metadata. Then check it.

I think you will get the attribute.

Thanks

Chandan

Former Member
0 Kudos

Hi Chandan,

Sorry for my weird question. I don't know how I produced this behavior. I recreated all attributes and now everything is working like expected.

Thanks for your answer!

Felix

Answers (0)