cancel
Showing results for 
Search instead for 
Did you mean: 

how to call supply function?

former_member720137
Active Participant
0 Kudos

Hi All

I have a requirement that once i click on ' save ' button data should be saved and values inside a table should also be refreshed. i have used supply function to populate the data in the table. Just want to know is there any way that i can call supply function from a normal method?

Regards,

Puneet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

using Invalidate method you can refresh your data's.

The sample code is,

data : node_node1 type ref to if_wd_context_node.

node_node1 = wd_context->get_child_node( name = 'NODE1' ).

 elem_node1 = node_node1->get_element( ).

node_node1->invalidate( ).

Thanks.

Edited by: Viji on Apr 15, 2008 2:21 PM

former_member720137
Active Participant
0 Kudos

Hi Viji

I have used invalidate in the action of save button , but the problem is i have used tree inside a table. so it automatically get collapsed , i don want that tree to get collapsed.. any idea?

Regards,

Puneet

Former Member
0 Kudos

Hi,

You can use the "Expanded" property in the tree. If you set this as "X" menas it will expand your tree.

Thanks.

former_member720137
Active Participant
0 Kudos

Hi Viji

Actually all i want is that in whichever state that tree is, its state should not change only data should change in the tree.. is it possible?

Former Member
0 Kudos

Hi Puneet,

Unfortunately its not possible.

Thanks.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

refer to

example for supply functions

WDR_TEST_DYN_ALV_USAGE

Former Member
0 Kudos

hi puneet...

you can call your supply function by invalidating the node like,

<node>->invalidate().

---regards,

alex b justin