voltmx.sdk.dto.Column Class
This class represents a column in a database table, which is in turn represented by a voltmx.sdk.dto.Table object. It is used when creating a query.
Constructors
The voltmx.sdk.dto.Column class has one constructor.
voltmx.sdk.dto.Column(table, columnName) Constructor
Signature
voltmx.sdk.dto.Column(table, columnName)
Parameters
Parameter name | Type | Description |
---|---|---|
table | voltmx.sdk.dto.Table | The table containing the column |
columnName | string | The name of the column |
Example
var dataObject = new voltmx.sdk.dto.DataObject("EAM_WO_ATTACHMENT");
var tblDto = new voltmx.sdk.dto.Table("EAM_WO_ATTACHMENT", "EAM_WO_ATTACHMENT", false);
var selQuery = new voltmx.sdk.dto.SelectQuery("serviceName", tblDto);
var colObj = new voltmx.sdk.dto.Column(tblDto, "ORDER_NUM");
var colObj2 = new voltmx.sdk.dto.Column(tblDto, "BINARY_NAME");
var colObj3 = new voltmx.sdk.dto.Column(tblDto, "ATTACH_DESC");
selQuery.addColumn(colObj);
selQuery.addColumn(colObj2);
selQuery.addColumn(colObj3);
dataObject.setSelectQueryObject(selQuery);