cancel
Showing results for 
Search instead for 
Did you mean: 

Call Event from One View to another View

Former Member
0 Kudos

Hi All,

I have 2 views in my Webdynpro application .View 1 has a input field and View2 has a button. When the user enters a value in the input field and clicks on Enter, i want to call the button action in View2.

I created Navigation link from view1 to view2 using outbound and inbound plugs. I created an action "OnEnter" for the input field. But how do i invoke Button action(View2) from View1?

Regards,

Maggie.H

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

you can achieve this by using event.

1. create a event in component controller "InputFilledEvent"

2. create a method in component controller to fire this event.

3.in view2, create a event handler which subscribe the event defined in component controller(step 1)

you can put the code here

4. in view1 onenter action, you can all the method defined in step 2 to fire the event

former_member185879
Active Contributor
0 Kudos

Hi Maggie,

You can do in another way, OnClick of view 2's button action you will write some code. Write the same code by creating a method in component controller, and call from wherever you want.

I Hope it helps and solves your issue.

Regards

Nizamudeen SM