dialog

iam making a dialog in my report…iam generating an account statement in the report.dialog is used to enter the account no and choose period between start date and end date.i have written code for dialog and getfrom dialog.but whem iam opening the report from menu item it is showing Runbase object not initialized and my dialog is not opening.

hii,

u hav to initialize the dialogRunbase as example

public Object dialog(Object _dialog)

{

DialogRunbase dialog = _dialog;

;

dialog.caption(“Daily Dispatch Plan Report”);

dialog.addGroup(“Group name :”);

dialogfield = dialog.addField(typeid(Transdate),"Date ");

dialogfield.value(date1);

return dialog;

}

I have already done this.still it is showing Dialog Runbase not initialized.

Hi,

Please check CustBalanceList Report for Example. You may get some idea.

Hope this will be useful

Thanks

Thanks for the reply but when I am writing the pack and unpack method as per custbalnce list report,then also it is showing error.Dialog runbase not initialized error is also cumin.

In your report, there is no need to use pack or unpack.Use your Debugger and find at which point you are getting this error…

Try the following example in a new report and you will the idea of how to use that.

  1. Class Declaration

dialogField dialogFromDate;
dialogField dialogToDate;
TransDate FromDate, ToDate;

dialogfield dialogflag;
noyesid _flag;

  1. In Dialog Method

public Object dialog(Object _dialog)
{
DialogRunBase dialog = _dialog;
boolean check;
;
dialogFromDate = dialog.addFieldValue(typeid(TransDate),FromDate, “FromDate”);
dialogToDate = dialog.addFieldValue(typeid(TransDate),ToDate, “ToDate”);
dialogflag = dialog.addFieldValue(typeid(noyesid),_flag,“Item # delivery Not Delivered”);

return dialog;
}

  1. New Method

Public boolean getFromDialog()
{
;
FromDate = dialogFromDate.value();
ToDate = dialogToDate.value();
_flag = dialogflag.value();
return true;
}

  1. In Fetch method,

You write your own coding and check it out…