Declare the dialogue filed on the class declaration
public class ReportRun extends ObjectRun
{
LedgerJournalTrans _ledgerJournalTrans;
DialogField dialogFromDate;
DialogField dialogToDate;
DialogField dialogLedger;
DialogField dialogBankAccount;
DialogField dialogBankAccount1;
DialogField dialogVoucher;
TransDate fDate;
TransDate tDate;
TransDate oldDate;
TransDate finStartDate;
TransDate finEndDate;
Real drOpenBalance;
Real crOpenBalance;
Real openBalance;
str tempDate,date1,date2; //madhav_abc
}
Override the Dialog method on the report.
public Object dialog(Object _dialog)
{
DialogRunbase dialog = _dialog;
;
dialog.addGroup('Date');
dialogFromDate = dialog.addFieldValue(typeId(TransDate),fDate,'From ');
dialogToDate = dialog.addFieldValue(typeId(TransDate),tDate,'To ');
dialog.addGroup('Voucher');
dialogVoucher = dialog.addFieldValue(typeId(Voucher),_voucher,'Voucher:');
return dialog;
}
No comments:
Post a Comment