static void Job4(Args _args)
{
CustTable custTable;
FieldId fieldId;
;
fieldId = fieldNum(CustTable, AccountNum); // This could be passed as a method parameter
select custTable; // Get first record
print custTable.(fieldId); // Print account number
select custTable
where custTable.(fieldId) == '1101'; // Where clause based on field ID
print custTable.Name;
pause;
}
I am trying to print sales confirmation report on a button click which I have added on Sales Order Detail form in Microsoft Dynamics AX 2009. On click event of that button, I have written following code: void clicked() { Args args; ReportRun reportRun; SalesFormLetter salesFormLetter; PrintJobSettings printJobSettings; CustConfirmJour custConfirmJour; RecordSortedList list = new RecordSortedList(55); SalesTable salesTableUpdate; ; SELEC...