Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

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

  • 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.

  • sohaibcheema Profile Picture
    sohaibcheema 46,594 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 228,501 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
    sohaibcheema Profile Picture
    sohaibcheema 46,594 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
    sohaibcheema Profile Picture
    sohaibcheema 46,594 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans