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,590 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 224,741 Super User 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,590 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,590 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

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,741 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans