Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

SysOperationTemplateForm Don't Want Displayed

(0) ShareShare
ReportReport
Posted on by 100

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?

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: SysOperationTemplateForm Don't Want Displayed

    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.

  • NoDozing2 Profile Picture
    100 on at
    RE: SysOperationTemplateForm Don't Want Displayed

    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?

  • NoDozing2 Profile Picture
    100 on at
    RE: SysOperationTemplateForm Don't Want Displayed

    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.

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: SysOperationTemplateForm Don't Want Displayed

    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)

  • NoDozing2 Profile Picture
    100 on at
    RE: SysOperationTemplateForm Don't Want Displayed

    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?

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: SysOperationTemplateForm Don't Want Displayed

    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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,157 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,938 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans