on 09-03-2009 12:08 PM
Hello,
Is there a way to influence the order in which the WDDOMODIFYVIEW methods are called?
We have a view (let's call it SUPERVIEW) that contains a usage (of let's say SUBVIEW). Currently SUPERVIEW's WDDOMODIFYVIEW is always called before SUBVIEW's WDDOMODIFYVIEW.
However, in SUBVIEW we are determining values that should change the way SUPERVIEW is displayed. Therefore SUBVIEW's WDDOMODIFYVIEW should be called before SUPERVIEW's WDDOMODIFYVIEW.
Is this possible?
best regards
Roland
What exactly are you doing in the WDDOMODIFYVIEW methods that creates such a dependency? The method should only be used for dynamic rendering of the UI. Perhaps if there is logic that should fire to determine what gets rendered, it should be tied directly to the triggering action and not in the WDDOMODIFYVIEW. I'm not sure I would want to loop back up and render the super-view twice (and consequently all children views again). Not only could this lead to an endless loop if you aren't careful, but also is inefficient because it forces the phase model to run twice every time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
in ur SUPERVIEW , make a global attribute of type WDY_BOOLEAN and set its value to ABAP_FALSE in WD DOINIT.
in WD DOMODIFY of ur Super view , put a IF condition b4 ur logic .
IF attribute value is ABAP_TRUE , thn execute the code in DOMODIFY of SUPER view ,
the control wud simply go to the DOMODIFY of SECONDVIEW , in that set the attribute value to ABAP_TRUE ,
nw after executing code in second view , the contrl wud go to SUPERVIEW's DOMODIFY .
this can help u
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If after execution in SUB view, u r firing the plug back to the SUPER VIEW ,ry follwing these steps :
1 In comp controller make attribute attr of type WDY_BOOLEAN
2 In SUPERVIEW 's doinit wd_comp_controller->attr = ABAP_FALSE
3 In modify of SUPER view ,
IF wd_comp_controller->attr = ABAP_TRUE
...
ur piece of code .
ENDIF.
4 now in WD DOMODIFY Of sub view
..
ur code
wd_comp_controller->attr = ABAP_TRUE
..
thn it shud definitely execute ur piece of code in SUPER view
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.