Skip to content

Table Service

Get Table Information in the Current Application by Table Identifier

javascript
tableService.getTableInfo(tableKey);

Parameters

ParameterTypeDescription
tableKeyStringTable identifier

Return Value Promise<TableInfo>

javascript
tableService.getTableInfo("staff").then((info) => {
  console.log(info); // {table:{},tableFieldList:[]...}
});

Query Record Data by recordId Using Table Identifier tableKey

javascript
tableService.queryRecordById(tableKey, recordId);

Parameters

ParameterTypeDescription
tableKeyStringTable identifier
recordIdStringRecord ID

Return Value Promise<Record>

javascript
tableService.queryRecordById("staff", "xxxxxxxx").then((record) => {
  console.log(record);
});