Access Data Table Records from JS
Here is a list of a few options can use a few options to access an array of records for programmatic use.
- Not yet re-checked
- Classic builder
Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.
Here is a list of a few options can use a few options to access an array of records for programmatic use.
Option 1 - The Tadabase JavaScript API (This is the option in the image above) The JavaScript API 3 can be used to get an array of records that are currently being displayed on a component. For example, if I have a table component on a page with the component ID of component_3, I can add the following code to the JavaScript section of the page.
TB.render('component_3',function(data){
console.log(data.records);
});
Option 2 - Custom Component
Depending on your use case, you may be interested in Custom Component.
More info can be found here -> Custom Component | Tadabase
Custom component helpers can be found here -> Custom Component Helpers | Tadabase
Option 3 - Our REST API
More info can be found here -> https://docs.tadabase.io/categories/manual/article/rest-api.
Original Community Post:
Access data table records from JS - Community Discussions / How Do I - Tadabase Community
Was this page helpful?
Something wrong or missing on this page? Tell us.