on 08-13-2015 3:47 AM
Hi Experts,
I need your help in reading the Label Text and its corresponding VALUE of input field / Dropdown field / Text view screen elements dynamically in Webdynpro abap.
I have managed to get the Label text and Label For values and by using 'Label for' value I can find out the corresponding screen field. What I want is VALUE of Screen field.
For example:
Assume there is customer field with the value C00001. I need to get the label of field and value of corresponding field programmatically.
-------------------------
Customer | C00001 |
-------------------------
Immediate help is greatly appreciated.
Best Regards,
Sreenivasa Sarma K
Hi Sreenivasa,
Please follow the below steps to achieve your requirement
Note: the method bound_primary_property( ) returns the binding path only if the UI element has a primary property like input field has VALUE as primary property
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramakrishnappa,
Thanks for the prompt response.
I would appreciate if you could advice me to fetch the View instances from component controller.
For example: I have 7 views in my Webdynpro and when I perform action and I need to get the all the views instances programmatically.
Best Regards,
Sreenivasa Sarma K
Hi Srinivasa,
Is your issue resolved? if not, please find my answer for your latest query.
The instances of views gets created/available once the views loaded / displayed.
To have the instances of all the views stored, you need to create global component attributes go_view1, go_view2.... go_viewN for each view of type IF_WD_VIEW and save the instance for first time in wddomodifyview
if first_time = abap_true.
wd_comp_controller->go_view1 = view.
endif.
Similarly, write the same code in all other views
So, you can access the view instances whenever required.
Hope this helps you.
Regards,
Rama
Hi Sreeni,
There is a concept in Webdynpro called "Context change log", try this concept to find the changes in a context. By this you can get the changed data.
Refer: Context change log | Team ABAP for implementation details.
Regards,
Meganadhan S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.