Hi Komi,
Yes, i have already extended the controller class like below:
class AssetReportControllerExt extends AssetReportsController
{
public static AssetReportControllerExt construct()
{
return new AssetReportControllerExt();
}
public static void main(Args _args)
{
SrsReportRunController formLetterController = AssetReportControllerExt::construct();
AssetReportControllerExt controller = formLetterController;
controller.parmArgs(_args);
controller.parmReportName(ssrsReportStr(AssetBalancesExt, Report));
controller.parmShowDialog(false);
controller.parmDialogCaption(Fixed Asset Balances Report");
controller.startOperation();
}
}
i am following the below link for customization, last class is to use the PrintMgmt class delegate method like below:
https://kishoredynamics11.blogspot.com/2021/07/add-new-field-in-standard-report-in.html
not able to get the enum value for Asset balances report in below line.
"PrintMgmtDocumentType::SalesOrderInvoice:
_result.result(ssrsReportStr(SalesInvoiceExt, Report));"
class PrintMgtDocTypeHandlersExt
{
[SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
{
switch (_docType)
{
case PrintMgmtDocumentType::SalesOrderInvoice:
_result.result(ssrsReportStr(SalesInvoiceExt, Report));
break;
}
}
}