kony.sdk.dto.Table Class
This class represents a database table, and is used when creating a query.
NOTE: This class is used only for offline Object Services, not for online Object Services.
Constructors
The kony.sdk.dto.Table class has one constructor.
kony.sdk.dto.Table(tableName, tableName2, flag)
Signature
kony.sdk.dto.Table(tableName, tableName2, flag)
Parameters
Parameter | Type | Description |
---|---|---|
tableName | string | The name of the database table |
tableName2 | string | The name of the database table |
flag | boolean | Boolean value |
Example
var dataObject = new kony.sdk.dto.DataObject("EAM_WO_ATTACHMENT");
var tblDto = new kony.sdk.dto.Table("EAM_WO_ATTACHMENT", "EAM_WO_ATTACHMENT", false);
var selQuery = new kony.sdk.dto.SelectQuery("serviceName", tblDto);
var colObj = new kony.sdk.dto.Column(tblDto, "ORDER_NUM");
var colObj2 = new kony.sdk.dto.Column(tblDto, "BINARY_NAME");
var colObj3 = new kony.sdk.dto.Column(tblDto, "ATTACH_DESC");
selQuery.addColumn(colObj);
selQuery.addColumn(colObj2);
selQuery.addColumn(colObj3);
dataObject.setSelectQueryObject(selQuery);