web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Hide Contract Parameter from menu item

(0) ShareShare
ReportReport
Posted on by

i run report from menu items after creating controller class

is there any method like override ShowQueryValues that used to hide query parameter?

how can i hide Contract Parameters from the menu item?

*This post is locked for comments

  • Verified answer
    Zain Bokhari Profile Picture
    on at
    RE: Hide Contract Parameter from menu item

    If you want to hide a specific single parameter, follow this same discussion https://community.dynamics.com/ax/f/33/p/234476/643556 

    or

    If you want to hide the parameter dialog box from the user completely use,

    YourControllerClass controller;
    
    controller = new YourControllerClass();
    
    controller.parmShowDialog(false);
    
    
    Or
    controller.run();
    
    instead of 
    
    controller.startOperation(); //it will skip the dialog for parameters and run the report directly.
    

    in your controller class.
  • Walid Gamal Profile Picture
    on at
    RE: Hide Contract Parameter from menu item

    thanks for your verified answer

    i use parmShowDialog(false) but not work

    so i use controller.run() that i worked

    thanks again.

  • Zain Bokhari Profile Picture
    on at
    RE: Hide Contract Parameter from menu item

    You're welcome.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans