Skip to main content

Notifications

Announcements

No record found.

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
    Sergei Minozhenko 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
    NoDozing2 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
    NoDozing2 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
    Sergei Minozhenko 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
    NoDozing2 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
    Sergei Minozhenko 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans