Hi Guys,
I added a date field for user input while batch process.
here is the sample code.
Step 1:
class DemoClass extends RunbaseBatch
{
TransDate transDate;
DialogField fieldTransDate;
DialogRunbase dlg;
#define.CurrentVersion(1)
#localmacro.CurrentList
transDate
#endmacro
}
Step 2:
override the method dialog
protected Object dialog(DialogRunbase dialog, boolean forceOnClient)
{
;
dlg = super();
fieldTransDate = dlg.addField(typeId(TransDate));
return dlg;
}
Step 3:
override the method getFromDialog method.
public boolean getFromDialog()
{
boolean ret;
;
ret = super();
transDate = fieldTransDate.value();
this.caption();
return ret;
}