I apologize for my ignorance. I'm very new to AX programming. I imagine my question will have a simple answer.
I've developed an RDP report. The controller, contract, and DP are all working as I want.
My problem is that it stops at a SysOperationTemplateForm and waits for me to click on OK. I would like to just bypass that form. How do I do that?
Hi NoDozing2,
You can try to avoid loading from SysLastValue by calling parmLoadFromSysLastValue(false) before startOperation, but in this case, the report will always use default values.
Good Morning.
I've stepped into the code and found my problem. I want to fix the correct way, so any advice is appreciated.
In SrsReportRunController, there is a method parmReportContract. In there, it does a prmisDefault(_reportContract). I set the contract, so of course it's the default. It eventually loads sysLastvalue, which resets my showDialog settings.
What I've done is put the following into prePromptModifyContract:
this.parmDialogCaption("@CSTLabel:CSTlabel0000011"); this.parmShowDialog(false);
This just seems like a hack. Is there a better way to handle this?
Hello Sergei,
I get a dialog box that has the parameter I'm using in the contract, the destination, and run in the background settings.
It looks like the system forces dialog opening if you do printing on screen. Do you see empty dialog without parameters in case if you use parmShowDialog(false)
Thanks for the help. Turns out I did have this line of code in my controller. However, the dialog still displays. Here's my code:
ProductTagController controller = new ProductTagController();
controller.parmReportName(ssrsReportStr(CSTProductIDtags, Report));
controller.parmArgs(_args);
controller.parmDialogCaption("@CSTLabel:CSTlabel0000011");
controller.parmShowDialog(false);
controller.startOperation();
Any other suggestions?
Hi NoDizing2,
If you want to skip dialog, there is a method parmShowDialog on controller class, you need pass false value before executing startOperation in main method.
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 Andrés Arias 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... 846 Super User 2025 Season 2
CA Neeraj Kumar 838
Sohaib Cheema 818 User Group Leader