on 09-16-2009 12:42 PM
Hi,
I have problem with ALV data refreshing in WD4A. Data is provided by external context mapping and data load is triggered by clicking on button on page.
If ALV is empty, first data is loaded OK, but if ALV contains some data, new data is not displayed. I have binded table UI element on same context node and here are data refreshed with no problem.
Thanks for any answer!
Hi,
Try to use the invalidate method of if_wd_context_node before you back to previous view.
Where are you binding the table to node.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in my button method? Before binding new data?
Like this?
lo_nd_changed_ns = wd_context->get_child_node( name = wd_this->wdctx_dik ).
lo_nd_changed_ns = lo_nd_changed_ns->get_child_node( name = wd_this->wdctx_zmeny_ns_dik ).
lo_nd_changed_ns->Invalidate( ).
lo_nd_changed_ns->bind_table( new_items = changed_ns_table ).
Many thanks for answer!
Hi,
I have looked at this metod before, but now I use it and it works!!!
Many thanks.
BTW, External context mapping have to be defined in this case too, otherwise I get runtime error:
Data no longer available when SALV_WD_TABLE GET_MODEL called (I think I have to call some method of alv elsewhere)
And why is external mapping for alv here? When it cause this problems?
Many thanks for your solution.
Hi,
I have an ALV and a input field in same view, but my data in ALV is getting refreshed.
I have used the External mapping itself. I havenot used any Invlaidate method also. It's woking fine.
Why donot try creating a fresh application and do it....It must work...
The error that no data longer available will raise ....when you donot have any data in node(bind_table) prior the model object getting created.
Regards,
Lekha.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.