on 09-12-2013 7:49 AM
Hi Experts,
I have created a Web dynpro ABAP application in which inside a view i have embedded a Dynamic view container . i want to pass an argument / value from this View ( this view has received this value from some other view )to the embedded Dynamic view .
How can i access this value in the embedded view is there any class available ?
waiting for your expert suggestions.
Thanks & Regards
Priyesh Shah.
Rule #1 of Object Oriented programming is "don't make available to other controllers anything that you don't intend to be available to them". If you want to make a value available outside the view, you will have to design the view that way.
A good design for when the value is requested by other components is to create a method in your embedded view controller (or as an interface method of your component controller if it's part of a different WebDynpro component) that will return the needed value when requested.
Alternatively, if you need to push the value out to other components (for example if the user makes a selection in a table, and that needs to be reflected in other views) you can create an action in the embedded view and fire that action when the user makes their change. Then you can create event handler methods to accept the value pushed by them embedded view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I thing this can be easily achievable using nodes on component controller..
make a node at CC and use it in all view. so data can be read in all view..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.