2016 May 04 12:23 PM
Dear All,
Pardon me but I haven't worked much in web dynpro hence this might be a silly question but please care to help.
The Process is having 2 Views main and next when I am navigating from main to next , view next is displayed some values which are editable.
View Next is having a button back to main which is working perfectly.
The issue that I am facing is that when I am selecting different value from Main view the View Next it is displaying old values.
Please suggest.
Thanks in Advance
Ashish
Dear All,
Pardon me but I haven't worked much in web dynpro hence this might be a silly question but please care to help.
The Process is having 2 Views main and next when I am navigating from main to next , view next is displayed some values which are editable.
View Next is having a button back to main which is working perfectly.
The issue that I am facing is that when I am selecting different value from Main view the View Next it is displaying old values.
Please suggest.
Thanks in Advance
Ashish
2016 May 04 12:42 PM
Hi Ashish,
First, you have posted in wrong thread. Use thread below.
http://scn.sap.com/community/web-dynpro-abap/content
Coming to your issue,
You have 2 views Main -> Next
Main view has it's context linked to input fields and
View has it's own context linked to the fields on screen.
You need to connect these 2 nodes using component controller. For this create a node structure in component controller and map them to these views. This will ensure that data changed in one view would be reflected in other. This is referred as BINDING.
Now in case, you don't have a requirement where data from one Node in view to be mapped directly in other view, still in that case, you need to populate data in Main or Next View context and update accordingly. To get data from Main View 1, create the same node in component controller and next views and read from there.
Cheers,
VS
2016 May 04 12:54 PM
Moving to webdynabap .
also, couldn't understand what to said . mapping is fine.
2016 May 04 7:15 PM
Hi Ashish,
In second view are you doing your coding in WDDOINIT?
If so, then the values will not get change in second view when you will call it second time after executing your WD component once.
WDDOINIT is initialization method which executes only once.
To change the values displayed in the second view you have to do your coding in WDMODIFYVIEW.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |