I have a class nameRunbaseReport Class and I should be able to directly generate a report when I run the class?
If your class is extended by RunbaseReport Class… then just override the ‘LastValueElementName’ method and return your report name.
Hope this will helps you…
AxTadka
http://axtadka.blogspot.com
its varified
Hi AXTadka,
The above sound related to my question. I duplicate a runbasereport class and renamed it but when I try to save it give me no error “Variable SalesPersonReportCopy has not been declared”. I can understand Vb.Net and c#.Net programing but I am not a x++ Coder. I appreciate your kind help and from fellow dynamics enthusiast.
Class Declaration
// This is a framework class. Customizing this class may cause problems with future upgrades to the software.
class SalesPersonReportCopy extends RunBaseReport
{
Date dateFrom, dateTo;
NoYesId noGrp;
DialogField dlgDateFrom, dlgDateTo, dlgNoGrp;
#define.currentVersion(1)
#localmacro.CurrentList
dateFrom,
dateTo,
noGrp
#endmacro
}
Main Method
static void main(Args args)
{
SalesPersonReportCopy SalesPersonReport;
;
SalesPersonReport = new SalesPersonReportCopy();
if (SalesPersonReport.prompt())
SalesPersonReport.run();
}