You are on page 1of 1

PassIng the parameters from the Form to Peport..

http://dynamIcsuser.net/forums/t/42147.aspx

n 8utton clIcked method()
voId clIcked()
[
Args args = new args();
FeportFun reportFun;
;
args.parm(emplTable.Empld);
args.name(reportstr(report2)); // report2 FeportName
reportFun = classFactory.reportFunClass(args);
reportFun.InIt();
reportrun.run();
super();
]

n the report InIt method
publIc voId InIt()
[
;
try
[
If(element.args().parm())
[
thIs.query().dataSourceTable(tablenum(EmplTable)).addFange(fIeldnum(EmplTable,Empld)).v
alue(element.args().parm());
thIs.query().userUpdate(false);
thIs.query().InteractIve(false);
super();
]
]
catch(exceptIon::Error)
[
Info(Error);
]
]

You might also like