I’m looking for a way to find some kind of object that stores records for the data tables so I can use them (iterate, etc) on my code. Is it possible to access them from js? (I know I can access loggedInUser but I’m talking more about plain records).
There are a few options you can use to access an array of records for programmatic use.
Option 1 - The Tadabase JavaScript API
The JavaScript API 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.
Option 2 - Custom Component
While I’m unsure what your use case is for this, I’m positive that you’ll be interested in our brand new Custom Component. Please feel free to check it out and contact us if you’d like to try it out.
Is the ‘Option 3 - Our REST API’ at least 99% secure to use inside js tab (authenticate there, etc)?
(just want to confirm there aren’t risks of leaking my API keys as I deal with very sensitive data). When I tried printing something to console with console.log I was able to see ALL the code written there from the dev tools on chrome, so my guess it probably isn’t so secure to do that. What do you think is the way to make it secure?
Use-case: I’d like to automate stuff that uses both Logged-in values and other tables/records, so I was trying to build some scripts that do the job. Also, dynamically update/read/delete data from the records based on interactions on the site (which I can do using DOM manipulation).