UI builder Data Table Component

I’m using the Data Table component in Backendless UI Builder and attaching logic to the “before mount” event, intending for the table to only mount if a validation check is successful. If validation fails, I want the table to avoid mounting entirely. However, even with this setup, I notice that the Data API still queries the database, and table data loads momentarily in the network call before redirecting to another page.

I’ve attached a screenshot of my setup. Could someone help me identify any missing logic or settings that could prevent the table’s data from loading in the network if the validation fails? I’d like to stop the database query altogether if validation is unsuccessful.

Thank you for any insights!

Hello @Mayank_Jain

I was able to do this by putting the table in a “block” component, then in the block “On Befoe Mount” handler managing the logic of the block visibility.


Also, if you don’t want to show data to users by their roles, it’s better to do it with data permissions
https://backendless.com/docs/rest/data_permissions_api.html

Regards