cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Method of another View

0 Kudos

Hi everybody!

I would like to call within the View A the method of View B (after a button Event I want to check the data in View B, for this I have written a method checkdata). Both views are in a viewset.

Thanks for your help.

Bye Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

No way -- it is impossible to call methods in View Controller from outside (i.e. another View Controller)

What should be done for you particular case is the following:

1. Create custom controller.

2. Place your data inside custom controoler

3. Views context nodes should be mapped to custom controller context nodes.

4. Define your validation logic as a method in custom controller.

5. Now you can call this method from necessary view: all data entered via another view will be up2date in custom controller context due to mapping "magic"

VS

0 Kudos

Hi Valery!

I think I got the idea. Thank a lot.

Bye Markus

0 Kudos

Hi!

I just tried to call the method of the custom controll but failed how can I do this ... are there any documentation available?

bye markus

Answers (1)

Answers (1)

Former Member
0 Kudos

Open "Properties" tab of your view controller, add your custom controller as required controller.

Then you can refer it from view controller as wdThis.wdGet<Your_Controller_Name>()

0 Kudos

Thanks now it works.

Bye Markus