on 11-09-2010 9:28 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.