A frequently used method can hide twisted secrets. Thread lightly, and put parameters in the right order. Type safety not included In X++ you can use the SysQuery framework to build SQL queries at runtime. For instance the following code Query q = new Query(); QueryBuildDataSource reqTransDs = q.addDataSource(tableNum(ReqTrans)); QueryBuildDataSource reqPoDs = reqTransDs.addDataSource(tableNum(ReqPO)); reqPoDs.addLink(fieldNum(ReqTrans, PlanVersion), …
Continue reading X++ and the insidious dangers of addLink (SysQuery)