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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

How to disable/hide report parameter on form

(0) ShareShare
ReportReport
Posted on by 1,559

Hi Friends,

I want to disable/hide one of parameter checkbox for VendAgingReport. How can I do it?

Thanks,

River

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    you need to modify class VendAgingReportContract

    all parameters of report which is using RDP, are in CONTRACT Class

    after removing parameters from contract class you, may be you also would need to modify VendAgingReportDP. Compile classes realted to vendAgaing after change.

    At end open report in SSRS, refresh DS, save it, Rebuild and redeploy

  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    another way without changing anything in AX can be hiding parameter on Visual Studio or SSRS level

    check following link for that

    dynamicsaxlounge.com/.../ssrs-tip-using-invisible-parameters-in-contracts-dynamics-ax-2012

  • Verified answer
    Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    You can decorate the parm method in the data contract with [SysOperationControlVisibilityAttribute(false)].

  • Ganriver1 Profile Picture
    1,559 on at

    This is what I am looking for.

  • Ganriver1 Profile Picture
    1,559 on at
    [
        DataMemberAttribute('IncludeAmountCur'),
        SysOperationLabelAttribute(literalStr("@SYS344267")),
        SysOperationHelpTextAttribute(literalStr("@SYS344268")),
        SysOperationControlVisibilityAttribute(false),
        SysOperationDisplayOrderAttribute('11')
    ]
    public boolean parmIncludeAmountCur(boolean _includeAmountCur = includeAmountCur)
    {
        includeAmountCur = _includeAmountCur;
        return includeAmountCur;
    }


    Somehow, it doesn't work. Can you tell me what I did wrong here?

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    what you have done so far, other than adding this line of code?

  • Ganriver1 Profile Picture
    1,559 on at

    never mind, you need to change at VS and Contract class.

  • Ganriver1 Profile Picture
    1,559 on at

    figured out, Thanks.

  • Suggested answer
    Community Member Profile Picture
    on at

    You can also use a not defined group

    SysOperationGroupMemberAttribute(‘group_notdefined_at_classdeclaration’)

    the group ‘group_notdefined….’ will not be shown on the dialog, so all members are

    invisible

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans