Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Refresh

Former Member
0 Likes
492

Hi,

How to refresh tree control. I have one REFRESH_TABLE_DISPLAY which is a private method. I need to refresh this tree which I have shown to the customer. How to use this method or any other alternative is available.

Thanks

Regards,

Satya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Hi

There's several methods like ADD_NODE, CHANGE_ITEM, CHANGE_NODE....

Max

4 REPLIES 4
Read only

Former Member
0 Likes
467

Hi

There's several methods like ADD_NODE, CHANGE_ITEM, CHANGE_NODE....

Max

Read only

uwe_schieferstein
Active Contributor
0 Likes
466

Hello Naga

If you look at class <b>CL_GUI_ALV_TREE</b> it has a method <b>FRONTEND_UPDATE</b> to send changed/inserted nodes to the frontend control. This method should be called at PAI to refresh the tree display.

Regards

Uwe

Read only

Former Member
0 Likes
466

Hi,

You must call the method DELETE_ALL_NODES and rebuild the nodes with ADD_NODE.

And at last you must call the method frontend_update, and flush to refresh the screen.

CALL METHOD g_tree->delete_all_nodes.

LOOP...

CALL METHOD g_tree->ADD_NODE.....

ENDLOOP.

CALL METHOD g_tree->frontend_update.

CALL METHOD cl_gui_cfw=>flush.

Regards,

Bertrand.

Read only

Former Member
0 Likes
466

In class CL_GUI_ALV_TREE, there is a methodFRONTEND_UPDATE to send nodes to frontend control. This method needs to be called in PAI to refresh the tree display.