Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to disable query 'select' button is sys operation framework?

(0) ShareShare
ReportReport
Posted on by 242

Hi,

Assume 'salestable' query is added in sys operation framework. So, when the UI is opened, there will be a select button displayed automatically with respect to pass range values to salestable query. Is there any way to disable the 'select' button w.r.t a check box.

Thanks!

*This post is locked for comments

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to disable query 'select' button is sys operation framework?

    When you let it call super, is the select button available? If no, that means the query used is locked for user filtering/interaction, so have a look at your query properties. If yes, instead of returning true just do the super call.

  • Suren_G Profile Picture
    Suren_G 242 on at
    RE: How to disable query 'select' button is sys operation framework?

    Hi Vilmos,

    I want the select button to be disabled based on a check box condition. I wrote the below code in the showQuerySelectButton (). In debugging mode, I can able to see that the value returns true. But the button is not enabled in the UI. Please let me know if you have any suggestions. Thanks!

    public boolean showQuerySelectButton(str parameterName)

    {

       boolean ret;

       //ret = super(parameterName);

       if(parameterName == "Show")

            ret = true;

       else

           ret = false;

       return ret;

    }

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to disable query 'select' button is sys operation framework?

    As discussed in the linked topic, you need to have a controller class for the report, and override the showQuerySelectButton method by returning false.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to disable query 'select' button is sys operation framework?

    Refer community.dynamics.com/.../212392

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans