Try to understand that
after then create these methods in form
- class declaration
public class FormRun extends ObjectRun
{
Object sysReportRun;
RunBaseReport runBaseReport;
}
- init
public void init()
{
;
runBaseReport = element.args().caller().runbase();
sysReportRun = runBaseReport.reportRun();
}
- create run base
public RunBase runbase()
{
return element.args().caller().runbase();
}
- create closeok
public void closeOk()
{
;
if (runBaseReport.checkCloseDialog())
{
super();
}
}
- create a parm method
//BP Deviation Documented
public edit B2B_IndentReportGenerationOnlyDraf editPOStatusDialog(
boolean _set,
B2B_IndentReportGenerationOnlyDraf _poStatusDialog)
{
if (_set)
{
sysReportRun.parmPOStatusDialog(_poStatusDialog);
}
return sysReportRun.parmPOStatusDialog();
}
drag and drop the edit method in form group
In report:
Create these methods in report copy paste from that xpo
-
pack
-
unpack
3.dialog
dialog = Dialog::newFormnameRunbase(formstr(B2B_IndentGenerationReportForm), sysReportRun.runbaseReport());
B2B_IndentGenerationReportForm this is form name replalce your form name their
- create parm method
public B2B_IndentReportGenerationOnlyDraf parmpoStatusDialog(B2B_IndentReportGenerationOnlyDraf _poStatusDialog = poStatusDialog)
{
poStatusDialog = _poStatusDialog;
return poStatusDialog;
}
that’s it
Don’t think to much it is very simple try to understand the code. Know how its working.
Regards,
Ganesh