Dialog in Report
//1. Class Declaration
public class ReportRun extends ObjectRun
{
dialogField dftest_Enum_EDT;
dialogField dfFromDate,dfToDate;
dialogGroup dialogGroup;
test_Enum_EDT test_Enum_EDT;
Date dtFrom,dtTo;
str strtest_Enum_EDT;
}
//2. Dialog
public Object dialog(Object _dialog)
{
DialogRunbase dialog = _dialog;
;
dialogGroup = dialog.addGroup("DialogGroup");
dftest_Enum_EDT = dialog.addField(typeid(test_Enum_EDT)); //dialog.addFieldValue(typeid(test_Enum_EDT));
dfFromDate = dialog.addField(typeId(FromDate));//dialog.addFieldValue(typeId(FromDate),dtFrom);
dfToDate = dialog.addField(typeId(ToDate));//dialog.addFieldValue(typeId(ToDate),dtTo);
return dialog;
}
//3. getFromDialog
public boolean getFromDialog()
{
;
strtest_Enum_EDT = dftest_Enum_EDT.value();
test_Enum_EDT = dftest_Enum_EDT.value();
dtFrom = dfFromDate.value();
dtTo = dfToDate.value();
return true;
}
//4. fetch
public boolean fetch()
{
;
info(enum2str(test_Enum_EDT));
info(date2str(dtFrom,123,2,4,2,4,4));
info(date2str(dtTo,123,2,4,2,4,4));
}