Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to disable/hide report parameter on form

Posted on by 1,531

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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to disable/hide report parameter on form

    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

  • Ganriver1 Profile Picture
    Ganriver1 1,531 on at
    RE: How to disable/hide report parameter on form

    figured out, Thanks.

  • Ganriver1 Profile Picture
    Ganriver1 1,531 on at
    RE: How to disable/hide report parameter on form

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

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: How to disable/hide report parameter on form

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

  • Ganriver1 Profile Picture
    Ganriver1 1,531 on at
    RE: How to disable/hide report parameter on form
    [
        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?

  • Ganriver1 Profile Picture
    Ganriver1 1,531 on at
    RE: How to disable/hide report parameter on form

    This is what I am looking for.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: How to disable/hide report parameter on form

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

  • Verified answer
    Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: How to disable/hide report parameter on form

    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

  • Suggested answer
    Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: How to disable/hide report parameter on form

    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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans