When adding new data to DataGrid, I want to get all the data in the current DataGrid to check if there is existing data. How can I do this? There are page breaks, so I want all the data, not just the current page. I think I can get it with JS.
Yes, you can retrive all data from DataGrid by this JS below:
Hii @ren liyuan,
You can also try with this js code.
hope it will work.
var grid = GridOS.getGrid('<GridId>');
var currentData = grid.getData();
return currentData;
Regards,
Rounak Rawat
Hi ren liyuan,
Could you please share the OML file ? I will make the necessary changes and revert to you.
Thanks,
Vipin Yadav