cancel
Showing results for 
Search instead for 
Did you mean: 

refresh table

Former Member
0 Kudos

Dear experts,

i have a Problem. In a Popup window the user can enter some data. if he accepts the changes i want to close the popup and refresh the table that is in another window.

I already have the code to save the new data in the context so my problem is only to close the window and refresh the table.

I hope you can help me

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi René,

Refreshing the table can be done in much easier way than writing the code again and again.

All you have to do is make use of a supply function for the node that you have bound to the table. The supply function whill have the coding for populating the table with the desired values.

The point to remember here is that the Supply Function will be called each time the node is initial.

Therefore, if you want to refresh the table values, all you need to do is call the method of the node reference: INVALIDATE. This will initialize the table node, thereby calling the supply function again to refresh it with the latest values.

Regards,

Rajesh.

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Rene,

Go through this [excellent blog by Anzy|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6707] [original link is broken] [original link is broken] [original link is broken]; where he explains how you can close popup windows. (The blog is titled as external windows but it does actually refer to popup windows.) You can also go through[ this another example|http://saptechnical.com/Tutorials/WebDynproABAP/Modalbox/page1.htm]. For refreshing the table display try doing a bind_table( ) (method of if_wd_context_node) with the new data that you have in your context node. Hope this helps.

Regards,

Uday