on 02-27-2015 2:52 AM
hi!
i got a question abt the sequence and process on how the veiw method is called....i have two view A & B. view B is called thru a button click in A. In B i perform few steps/validation to display a log in B itself...now in debug mode i think i'm seeing that view A method (WDDOMODIFYVIEW) is called when i do not have any plug firing the view A from B. I expect to see the methods of B alone being trigged but somewhere in the process the WDDOMODIFYVIEW of A is when the screen A is not called from B. any idea on whatz going in background?
Hi Prabhu,
WDMODIFYVIEW Method is triggered when ever there is any modification/change in the UI's of the view. Since when you click on a button in VIEW A to navigate to view B, before the content of B is displayed, the view A in window is changed and B is displayed. Hence the WDMODIFYVIEW of A is triggered and then after rendering of B , WDMODIFYVIEW of B is triggered.
Please check the Phase model of WebDynpro to understand much better.
Phase Model - Web Dynpro ABAP - SAP Library
https://help.sap.com/saphelp_nw73/helpdata/en/49/ca1023d7d958c1e10000000a421937/content.htm
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harsha
thk but i am aware on how this works...my issue is sen when an event action in view B triggers the method WDMODIFYVIEW in view A where view A is not called...to go into view B we naavigate from A but confused how can an action in view B trigger this method in A.....this happens only on certain conditions when a context is set.
Hi Prabhu,
Are you intending to explain that for a particular event in view B, the wdmodifyview of View A is triggered. If so can you please explain the code what you written for that particular event. This is quite unusual and request you to share the way you have embedded the views for these views. Have you used ViewContainerUIelement and embedded View B in it and Placed ViewcontainerUIelemnt in View A?
Regards,
Harsha
Hi Harsha
In view A i have a table to display a list and a button that will call view B with the detailed list of the selected item in view A. After certain event in view B i set a flag in the context. this flag is checked in modifyview method of view A. in this point i get this issue
this is the piece of code:
lo_el_element_properties = lo_nd_element_properties->get_element( ).
MOVE 'X' TO ls_element_properties-initialize_ctrl_list.
lo_el_element_properties->set_static_attributes( static_attributes = ls_element_properties ).
viewcontainerui is not implemented here.
Hi ,
Is your issue addressed?. If not,pls revert with your concerns.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
WDMODIFYVIEW( ) method is the only method which gets triggered in every action of that particular view.
This method gets called for any action that happens on the screen. Each and every action will trigger it.And this is the only method in which dynamically modifying the UI controls is permitted.
.
Thanks
KH
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.