cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute supply funtion when selection changes in Radio button

Former Member
0 Kudos

Hi All,

I have a context nodes like below.

Datasource

-Node1 (supply function)

--Node11 (supply function)

---Att11

---Att12

-Node2

-Node3

When I select an option in the Radio buttons, for the first time, Node11 is populated with data.

When I select different option in the Radio buttons, for the second time, Node11 is repopulated with new data, still it has old data.

How to repopulate the data in context based on the user selection?

Thanks

Sundar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Associate an action with the user selection. In that action, read the context node which you want to reload with data.

now call method "invalidate" from interface if_wd_context_node. The instance of this interface you already have when u read tthe node. This method call : lo_context->invalidate( ) will retrigger the supply function and it will load data as per new selection.

Regards

Vishal Kapoor

Former Member
0 Kudos

Vishal,

It worked.

Thanks for your help.

Regards

Sundar

Answers (0)