on 09-14-2010 7:44 AM
Hi all,
I have two views view1 and view2. View1 also have an action Action1, View2 have Action2. I wanna call Action1 from view2(action2) . Is it possible ? How can i do that ? View1 and view have different contexts.
Regards,
Orhan
no helpful result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is not possible to call methods of one view from another. If you need to use same method in more than one view, create the method in COMPONENTCONTROLLER.
Regards,
Manogna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I doubt if it is possible to call a view's action from another view.(may be there is a way , but I do not know)
As a workaround , you can create a component controller method with the code same as in your View1 's action handler code
and call it from your second view.
Cheers,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You cannot call methods of a view from different view.Create wrapper method in component controller and call the same from the view method.
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hmm in that case , in your action handler of View 1 , read all the context's needed for your component controller method(action handler of view 2) and pass this as exporting paramaters and get these values (changed values) as importing paramaters from Comp controller method and then set the context using these values.
Too much work though..:)
Thanks,
Aditya.
>
> there are lots of contextes i need to find a different way.
You have to consider that you are likely designing your Web Dynpro Components incorrectly. If you have large views with large local contexts then these should probably be separate Web Dynpro Components. Otherwise your views should be largely empty, delegating most of their processing to the component controller so that cross view data and eventing is handled there.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.