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.

Copied//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.

Copied//Get a Single Table without details using table name
let datastore = app.datastore();
let table = datastore.table('SampleTable');