Instantly share code, notes, and snippets.

View NewQuery
Query query;
QueryRun qr;
QueryBuildRange qbr;
QueryBuildDataSource qbds, bdsInventDim;
query = new Query();
qbds = query.addDataSource(tableNum(PriceDiscGroup));
qbdsInventDim = qbds.addDataSource(tableNum(InventDim));
qbdsInventDim.addLink(fieldNum(PriceDiscAdmTrans, InventDimId), fieldNum(InventDim, InventDimId));
View Find()
static HMEmployee find(HMEmployeeId employeeId,
boolean _forUpdate = false)
{
HMEmployee employeeTable;
if (employeeId)
{
if (_forUpdate)
{
employeeTable.selectForUpdate (_forUpdate);