voltmx.sdk.dto.Table Class
This class represents a database table, and is used when creating a query.
Constructors
The voltmx.sdk.dto.Table class has one constructor.
voltmx.sdk.dto.Table(tableName, tableName2, flag)
Signature
voltmx.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 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);