Buyer workbench changing buyer not refreshing properly the PO grids

Hello,

I ws asked to add the ability to add comments in the open PO section. So I used UD10 table to save the comments added by user. UD10 was added via the wizard with the parent/child relationship.

When the first time the form opens, all the comments can show in the grid.

If the buyer gets modified to another, the comments are not showing in the grid. (there are part of the dataset, but just not shown)
I tried Grid.Refresh(), did not work… Only action that worked, was to press the refresh button on top of the form. Which takes a long time to process…and it is not “user friendly”.

I am sure there is some code I can call after the Buyer change detection to refresh the grid view ?

Please help

thanks

pierre.

I took a look at the form, the only difference I see between using the dropdown to change the Buyer and clicking Refresh is that refresh actually calls this.NotifyAll()

Try using that, Notify is used to let UI controls know that the data source has been changed so they need to refresh as well. You can Notify individual epidataviews or everything.

1 Like

I tried that but did not refresh.

oTrans.NotifyAll()

How can I simulate in code the clicking of the refresh button on top of the form?

Pierre

oTrans.Refresh() should work.