Skip to content

Instantly share code, notes, and snippets.

@tommykakashi
tommykakashi / NewQuery
Last active Dec 14, 2015
Build a Query in X++
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));
@tommykakashi
tommykakashi / Find()
Created Mar 7, 2013
Find() method in X++
View Find()
static HMEmployee find(HMEmployeeId employeeId,
boolean _forUpdate = false)
{
HMEmployee employeeTable;
if (employeeId)
{
if (_forUpdate)
{
employeeTable.selectForUpdate (_forUpdate);
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.