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 tableobject can be created by referring to the table ID.

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

Note : There is no promise involved in the above methods and the table object contains the methods accessible by the table.
    
copy
//Get a table object using the table name var table = datastore.tableId('SampleTable');

Last Updated 2023-11-14 13:20:49 +0530 +0530