cancel
Showing results for 
Search instead for 
Did you mean: 

How to reference a costum controller from a View?

Former Member
0 Kudos

Hello,

I've created a costum controller and set it at the required controllers of the component.

My question is how to reference this controller from a certain view in order to put values in it?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roy

If u want to set the Values for the Context Variables inCustom Controller then u can do like this

wdThis.wdGet<<CustomControllerName>>().wdGetContext().currentContextElement().set<<ValueATTributeName>>(<<Value>>);

With Wishes

Krishna Kanth

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First please add the custom controller in the required controllers of the view and you can use the above API.

Regards, Anilkumar

Former Member
0 Kudos

Oh Anilkumar, I had the code but now I see why it wasn't working...

Former Member
0 Kudos

One more q:

At the moment I am using this code in order to create an element on my context view:

IPrivateSynelClockView.IRecordElement newRecordElement;

Assuming my costum controller contains the same context how do I reference and create an element there?

Former Member
0 Kudos

I was able to solve the last Q on my own.

By way, for some reason I can't give points, so I'll do that later. Anyone else has this problem?

Message was edited by: Armin Reichert

(Assigned points)