cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a method of one view in other view

Former Member
0 Kudos

Hi

could any one suggest "how to call a method of one view in other view "

thanks

kaushik

Accepted Solutions (0)

Answers (4)

Answers (4)

balaji_bodagala5
Participant
0 Kudos

Hi,

it is not possible,But the webdynpro will follow the MVC architecture,that view must intract with controller methods,but you can navigate one view to another view using navigation plugs,

Thanks,

Balaji

former_member189631
Active Contributor
0 Kudos

Hi Kausic,

  • Its not possible to call a method from view to View.

  • Since view is private entity we can not pass the data directly.

  • I suggest you to declare the method in Component/Custom controller and call.

  • the code is,

wdThis.wdGet<Component/Custom Name>Controller().<methodName>();

Regards,

<b>Ramganesan K</b>

Former Member
0 Kudos

kaushik,

See here:

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

sid_sunny
Contributor
0 Kudos

Hi Kaushik,

Sorry not possible. Use component or custom controller for the purpose.

In detail:

create a method in component or custom controller which call the method of the target view in it, and call the component or custom controller method from source view.

Regards

Sid