on 02-28-2007 4:54 PM
Hi all.
I have a view which displays a table (deliveries). When I perform an action some
stuff is done and a method in the corresponding component controller is called
which does a new selection of deliveries and bind the table to the corresponding
context node which is displayed by the table. No navigation is done in the
mentioned action.
My problem is that the table content gets not updated in the view. I still see the
old entries.
In another component I have a similar process. The only difference is that context
update is done via the view controller. In this case I see changes directly in the
table.
What am I missing?
Thanks for any help.
Cheers,
Sascha
Hi Sascha,
Have you really mapped the node from the view controller to the one of the component controller? The icons in the context editor are quite similar. If yes, does the Web Dynpro debugger display the content?
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas.
Yes the context node of the component controller is mapped to the context of the
view controller. It displays the data when I navigate to the view.
The action posts goods issue of selected deliveries. If an error occurs I navigate to
another view to show the protocol. Here the user can click a button to navigate
back. Before I navigate I also call the method of the component controller which refreshs the selction. In this case the table displays the correct values.
Only in case the method in component controller is called within the view controller of the view which displays the table without navigating the table gets not updated.
So the context in component controller seems to be updated in boths ways but
only displays the values correctly if I am comming from another view.
Any idea?
Cheers,
Sascha
Hi,
If you are triggering an event, the view should be refreshed, so the values should
be updated. Possible thing is that you have your data gathering in your wddomodifyview stage
or you gather the old initial values after you loaded in the processed ones.
is there a statement around your binding of the table which is only met when you come
from another page? if, Case,...
grtz
Koen
Thomas and Koen,
thank you for your help. But it was something totally different.
The table shows open deliveries and the user can select them to post goods
issue. I do this by using WD_DELIVERY_CHANGE. All open deliveries are
selected from a databse view which joins LIKP and VBUK. So directly after
posting I reselect from this database view cause posted deliveries should
dissapear from the table.
In debugging mode everything works fine, I just missed that yesterday. So it
seems that the system has enough time to refresh the databsae view.
So my fault was that I have forgotten to set the parameter wait when calling
BAPI_TRANSACTION_COMMIT after calling WD_DELIVERY_CHANGE.
Sometimes you just do not see the wood for the trees.
Thank you again.
Cheers,
Sascha
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.