Hi All,
Need to change Report design for the standard Cheque report ( USStyle ) in D365Fo
Below Step's I followed
1. duplicate the report
2. [ExtensionOf(classStr(BankPrintTestCheque))]
final class BSFBankPrintTestCheque_Extension
{
static void determineReportMenuOutput(TmpChequePrintout _tmpChequePrintout, Object _this)
{
Args args = new Args();
BankPrintTestCheque bankPrintTestCheque = _this;
args.caller(_this);
if (_tmpChequePrintout.ChequeFormType == ChequeFormType::USStyle)
{
new MenuFunction(menuitemOutputStr(BSPChequeMenu), MenuItemType::Output).run(args);
}
}
3.
class BSFChequeControllerExt extends ChequeController
{
#SRSFramework
public static BSFChequeControllerExt construct()
{
return new BSFChequeControllerExt();
}
public static void main(Args _args)
{
BSFChequeControllerExt controller = new BSFChequeControllerExt();
controller.parmArgs(_args);
controller.deleteTempData();
controller.parmReportName(ssrsReportStr(BSFCheque_US, Report));
controller.parmShowDialog(false);
controller.parmDialogCaption("@SYS24090");
controller.startOperation();
}
Problem is Report is not woking,please advice on this