Announcements
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.
Hi NoDozing2,
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.
André Arnaud de Cal...
294,157
Super User 2025 Season 1
Martin Dráb
232,938
Most Valuable Professional
nmaenpaa
101,158
Moderator