CSV export bug

Hello forum,

I made a grid application and want to export the results to a CSV file. This works fine with the press of a button thanks to scriptcase!

The problem is that the user has multiple grids with multiple buttons to redirect to them. When a user exports, goes to a different grid and back to the previous one, it exports again automatically and doesn’t show the data.

Is there any way this can be repressed?

Thanks in advance