Greeting everyone i did customization on sales order report and i was flow this steps
anyway now i want back original design how can i retrieve as was before
Greeting everyone i did customization on sales order report and i was flow this steps
anyway now i want back original design how can i retrieve as was before
actually i need get back the original design
and i want add my custom design with new button (menuitems)
Are you trying to get back the original design of the report, or add your custom design to Print management?
thanks for replay
but how can i add the custom report to Print management
i checked the link but i found nothing
ok i did but still printing my customization report and not shown original report
Hi,
Assuming you need both custom and original report do below. If you want to delete custom and get only original then as suggested by Nikolaos, delete all objects.
Your Custom controller class should like below:
class CustomSalesInvoiceController extends SalesInvoiceController { public static CustomSalesInvoiceController construct() { PgonSalesInvoiceController controller = new CustomSalesInvoiceController(); return controller; } public static void main(Args _args) { SalesInvoiceController formLetterController = CustomSalesInvoiceController::construct(); formLetterController.parmArgs(_args); formLetterController.parmReportName(ssrsReportStr(CustomSalesInvoice, Report)); formLetterController.parmShowDialog(false); formLetterController.parmDialogCaption("@SYS22766"); formLetterController.startOperation(); } }
You have created 2 objects, assigned value to 1, and used other to start the report execution.
There is code missing to add the custom report to Print management. To do that check thread https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/209395/print-management-adding-new-design?pifragment-96834=1
In the screenshot, you added where you are setting a custom report name to be used in print management will give an error.
When you are using original/copy option to print it will take a custom report because that is what you set in getDefaultReportFormatDelegate method.
When you use print management then whatever is set in print management will be used.
Delete all these objects and build your custom module. Then you can get rid of it.
sorry for late respond
here's my project I've created
as you see here
i've only created new design as i selected down here
class
menu item output
class
that's all
Object reference is something coming from your custom code . If you have any custom code written in print management classes comment it or if it not required remove it , build your system and then try to print report again.
Could you share all code that you developed when you were working with this report? Thanks!
thanks for replay
here settings when i'm useing my customization report and it printing my customization report
and when i return settings to default still printing my customization report and not shown original report
also i try to print as you said print management setup i got this error as you see below
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156