Hi Team,
I'm working on DataGrid on the screen. when the screen have datagrid I'm getting error like below and if you see in the console I'm getting Cannot read properties of null (reading 'uniqueId') . But this error doesn't causing any issue for functionality. can you please help me on this.
Thanks
The error you're encountering in the console, even though it doesn't affect the functionality of the DataGrid, is typically caused by some unexpected behavior during the rendering or initialization of the component. It might be related to a lifecycle issue or an operation attempting to access a property that hasn't been properly initialized yet.
Ensure the DataGrid is fully loaded and all data and references are initialized before performing any operations that might depend on the uniqueId.
Probably thats what is causing the issue.
Hi André Costa,
Thanks for replying, yeah this error occurring due to not initialized for some components. Now its working.
The error in OutSystems means that some element or data is missing or isn't initialized when the code tries to access it.
It may occur because of using custom JavaScript. Check if the data grid has loaded and contains data before accessing it. You can place your JavaScript in an OnReady event.
Thanks Rajat,
yes I didn't initialized client actions for datagrid events and now its working.
Hi @Shanmuka Reddy, May I ask how did you resolved this issue?We're getting the same error atm and not sure where to look or how to debug it. I tried to remove any js that adds attribute(enable tab function) to data grid, but it still persists. Thank you
Hi Dominic Franz Sto Domingo,
This error because of container initialization. Try to get out the widgets from the container which loads the screen may it solve it out.
Thanks,
Shanmuka Reddy
Hi @Shanmuka Reddy , Thank you so much for your response. But, our case is quite weird. I tried removing the javascript that run on initialization of the data grid but it didn't work. I also tried to create a web block with a blank data grid and the issue still occurs. Thank you,Dom