I have two different reports design. My requirement is to print a report which is selected in base enum. After selecting baseenum when i click the report button (Action menu item), that report should be generated. How can i do this?
It can be controlled by parmReportName() method of the report controlled class.
By the way, which version of AX it is about? You've attached tags for both AX 2012 and D365.
It is about d365, Should i go for methods of action menu item?
Because i have action button and base enum too. The design selected in baseenum should be printed when clicked on action button. How can i do this?
Moved to Dynamics 365 Finance Forum; tags adjusted.
Where do you set the enum? In the report dialog? In a parameter table? In a record that the report is printed for?
I have added a baseenum to my project and then add it to table. After adding it to table i have move it to the form.
Now which method of action button should i override to complete this. Now my baseenum have different design names. It will done through a single controller class or should i create two different controller classes????
I'm totally stuck
Using is a single controller is sufficient. As I said, you can choose which design will be used by using parmReportName() method of the controller.
But before you can do that, you must think about how you can get the right record from the table. Unfortunately you told us nothing about the table, therefore we can't help you with it.
Yes i got it!
I have that base enum and some other fields in my table but not in my temptable using for report. At form level i'm using that enum just.
Can you please tell how can i get right record in controller class to put condition which design is selected by user?
Unfortunately I can't tell you which record you want to select from your table and based on which conditions. All we know about your table and your business requirements is what you told us - which is nothing.
Maybe you should start by answering my previous questions: Is it a parameter table? Or do you want to take the value from a selected record? For example, let's say that you print information about an order and the enum is on the order record.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 765 Super User 2025 Season 2
CA Neeraj Kumar 743
Sumit Singh 551