query = new Query();
queryRun = new QueryRun(queryStr(mbs3PHPShipTo));
qbds = queryRun.query().dataSourceTable(tableNum(CustTable));
qbr = qbds.addRange(fieldNum(CustTable, AccountNum));
qbr.value(SysQuery::value(custAccount));
while(queryRun.next())
{
custTable = queryRun.get(tableNum(CustTable));
address = queryRun.get(tableNum(Address));
customerElemShipTo = this.addElement("ShipToValue", customerShipToNode);
customerElemSUD = this.addElement("DisplayName", customerElemShipTo);
customerElemSUD.text(address.Name);
}
queryRun = new QueryRun(queryStr(mbs3PHPShipTo));
qbds = queryRun.query().dataSourceTable(tableNum(CustTable));
qbr = qbds.addRange(fieldNum(CustTable, AccountNum));
qbr.value(SysQuery::value(custAccount));
while(queryRun.next())
{
custTable = queryRun.get(tableNum(CustTable));
address = queryRun.get(tableNum(Address));
customerElemShipTo = this.addElement("ShipToValue", customerShipToNode);
customerElemSUD = this.addElement("DisplayName", customerElemShipTo);
customerElemSUD.text(address.Name);
}