Get a Table Object

A table object 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 a table instance using tableID

A table object can be created by referring to the table ID.

Copied//Get a table object using table ID
var table = datastore.tableId(1510000000110121);

Get a table instance using tableName

Alternatively, a table object can be created by referring to the table name.

There is no promise involved in the above methods and the table object contains the methods accessible by the table.

Copied//Get a table object using the table name
var table = datastore.tableId('SampleTable');