void showTotals()
{
Dialog dlg = new Dialog("Totals");
DialogField rfpAmount;
DialogField settlAmount;
DialogField totalAmount;
formBuildCommandButtonControl cancelButton;
;
rfpAmount = dlg.addFieldValue(extendedTypeStr(Amount), MIORFPTable.TotalReqAmt, "Cash Advance", "Cash Advance");
rfpAmount.active(false);
settlAmount = dlg.addFieldValue(extendedTypeStr(Amount), MIORFPSettlementTable.TotalSetAmt, "Actual", "Actual");
settlAmount.active(false);
totalAmount = dlg.addFieldValue(extendedTypeStr(Amount), MIORFPTable.TotalReqAmt - MIORFPSettlementTable.TotalSetAmt, "Settle", "Settle");
totalAmount.active(false);
dlg.defaultButton(DialogDefaultButton::Ok);
dlg.alwaysOnTop(true);
dlg.dialogForm().form().design().left(48, 4);
dlg.dialogForm().form().design().top(240, 3);
cancelButton = dlg.dialogForm().control("cancelButton");
cancelButton.visible(false);
dlg.run();
}