kony.sdk.dto.Column Class

This class represents a column in a database table, which is in turn represented by a kony.sdk.dto.Table object. It 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.Column class has one constructor.

kony.sdk.dto.Column(table, columnName) Constructor

Signature

kony.sdk.dto.Column(table, columnName)

Parameters

Parameter name Type Description
table kony.sdk.dto.Table The table containing the column
columnName string The name of the column

Example

var dataObject = new kony.sdk.dto.DataObject("ObjectName");
var tblDto = new kony.sdk.dto.Table("ObjectName", "ObjectName", false);
var selQuery = new kony.sdk.dto.SelectQuery("serviceName", tblDto);
var colObj = new kony.sdk.dto.Column(tblDto, "field1");
var colObj2 = new kony.sdk.dto.Column(tblDto, "field2");
var colObj3 = new kony.sdk.dto.Column(tblDto, "field3");
selQuery.addColumn(colObj);
selQuery.addColumn(colObj2);
selQuery.addColumn(colObj3);
dataObject.setSelectQueryObject(selQuery);