Looping Through Queried Data Grid AX

Return To AX Content

void clicked()
{
//create new record
CustTransOpen myCustTransOpen;

//Get the query in the grid
QueryRun qr = new QueryRun(CustTransOpen_QR.query());
;

super();
//loop through to the end and mark each
while (qr.next())
{
myCustTransOpen = qr.get(tablenum(CustTransOpen));
CustTransOpen_DS.markTrans(true,myCustTransOpen,1);
}
element.redraw();
}

Return To AX Content