on 03-16-2012 10:47 AM
Hello everybody,
I wonder is it possible to call a view method from another view of the same component? If so, how?
I have a helper method configuring an ALV which I need to call from two different views. Moving the method to the component controller doesn't seem to work because the ALV usage is needed which is declared in the view only.
Any advice?
Thank you!
create a global variable at comp controller attributes tab of that ALV usage type.
When the reference of ALV usage is created in that view, assign this to global variable.
In the comp controller, move that method from that view to comp controller method, inside code check whether that variable is bound and then proceed with your logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.