on 02-03-2009 12:03 PM
Hi All,
I've just started learning ABAP Web Dynpro and have completed the exercise to create the sflight application.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e6/2c4b29dc87c6409d6469ec390e8f3d/frameset.htm
so far so good...
I then added a button on the display view to take the application back to the search view, again this worked ok. But i then noticed that when I click on the search button again the 'GETFLIGHTS' method is no longer called and the display screen always displays the data from the first seach. (I have checked in de-bugging and the method is only called the first time the search is initiated).
??
Any help most appreciated.
Thanks,
Paul
This is becuase this application uses a supply function. The supply function is only fired by the framework when an invalidated or initial node is accessed. Quickly studying the tutorial, in a real application I probably wouldn't follow this structure of using a supply function for this very problem. You would need to invalidate the context node on the navigation plug in order to get the supply funciton to fire again.
I think this is just a very simplist example that was designed to demonstrate the basic techniques and wasn't really designed for multiple navigations back and forth. Probably best to learn what you can from this tutorial and then move on to more advanced ones.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to complement what Thomas wrote, if you want to invalidate the node do the following on the navigation plug:
data lr_node type ref to if_wd_context_node.
*Get the reference to the node, something like
*lr_node = wd_context->get_child_node( wd_this->wdctx_sflight ).
lr_node->invalidate();
Regards.
Removed by moderator
Edited by: Thomas Jung on Feb 3, 2009 7:34 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.