RE: Runbase Dialog with only OK button
Hi Boobalan,
Run your class and come to the cancel button right click and go to personalize
and than go to design and cancel button visual properties set to "NO" than again run your class dialog will open with only ok Button .
Code:
public class CXT_AllocationDate extends RunBase
{
DialogField fromdate,lastdate;
FromDate StartDate;
}
protected Object dialog()
{
Dialog d=new Dialog();
d.caption("Allocation Date");
d= super();
fromdate=d.addField(extendedTypeStr(FromDate),'From Date');
return d;
}
public boolean getFromDialog()
{
StartDate=fromdate.value();
return super();
}
public void run()
{
info(strFmt("Start Date=%1",StartDate));
super();
}
public static void main(Args args)
{
CXT_AllocationDate wo=new CXT_AllocationDate();
;
if(wo.prompt())
{
wo.run();
}
}