declare following variables in class
DialogField DialogFromDate,DialogToDate;
// DateTimeUtil fromDate;
// DateTimeUtil toDate;
FromDate fromDate;
ToDate toDate;
protected Object dialog()
{
Object ret;
DialogRunbase dialog; //= super();
Dialog = super(dialog);
Dialog.caption("Percentage Calculation");
DialogFromDate = dialog.addField(typeid(FromDate));
DialogToDate = dialog.addField(typeid(ToDate));
return dialog;
}
public boolean getFromDialog()
{
boolean ret;
ret = super();
fromDate=dialogFromDate.value();
toDate=dialogToDate.value();
return ret;
}