Get a Table Instance
A table reference can be created by the following methods which would not fire a server-side call. The datastore reference used in the below code snippets is the component instance.
Get the table instance using tableID
A table reference can be created by referring the table ID using the getTable() method.
copy//Get a Single Table without details using table ID let datastore = app.datastore(); let table = datastore.table(1510000000110121);
Get the table instance using table name
Alternatively, A table reference can be created by referring the table name using the getTable() method.
There is no promise involved in these methods and the instance of the table alone is returned.
copy//Get a Single Table without details using table name let datastore = app.datastore(); let table = datastore.table('SampleTable');
Last Updated 2023-09-03 01:06:41 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit