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)

SSRS Contract Class Parameter (Grey Out Parameter OR Make parameter Invisible)

(0) ShareShare
ReportReport
Posted on by

Hey All,

I'm trying to Grey out a field in the Report UI builder by modifying the contract class and compiling it and generating incremental CIL.

I did add SysOperationControlVisibilityAttribute(false) to the DataMemberAttribute which ideally should be removing this particular field from the Report Form UI. Somehow parameter is still shown when i fire up report from menu. (AX Client has been restarted too).

I see assistance in knowing the follwoing?

1.How to Remove it completely?
2. H
ow to Grey out from UI (users still can see it, but cannot change the default option)

 

Quick assistance is very much appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Hariharans87 Profile Picture
    3 on at

    If you want to remove it completely, you can delete this parameter method and remove this parameter calling part in the RDP class.

    You could use change the parameter visible property in the Visual Studio for hiding the parameter.

    Make sure that you are using the below code and not added other attributes.

    [DataMemberAttribute, SysOperationControlVisibilityAttribute(false)]

    public int parmIntProperty(int _parmIntProperty = parmIntProperty)

    {

       parmIntProperty = _parmIntProperty;

       return parmIntProperty;

    }

    If you still face the same issue, try to restart the reporting service.

  • Community Member Profile Picture
    on at

    Change.JPGChange.JPG

    Ok, so am trying to gray out or make this invisible in Bill Of exchange Journal report (screen shot attached).

    Also, attached the contract class code change where i'm passing 

    SysOperationControlVisibilityAttribute(false) on this field, so it will skip from UI builder call and wont show up when the report form in opened (at least that is what i understood from help).
    But even after this change, i still see it in the form. I do not think i need to change anything in Visual Studio for this report design, as this change must reflect as soon as it is fired from AX client (irrespective of whether i run report of not).

    Can you advice, what did i got wrong? Or to accomplish this, what should i be doing?



  • Verified answer
    Hariharans87 Profile Picture
    3 on at

    Try to use the below code.

    [DataMemberAttribute('Transactions'), SysOperationControlVisibilityAttribute(false)]
    public boolean parmTransactions(boolean _transactions = transactions)
    {
    ...
    }

    If you are still facing the same issue, restart the reporting service and AOS.

  • Community Member Profile Picture
    on at

    Hey Hari, tried all your recommendations, unfortunately, none worked. Restarted AOS & RS, did compile, forward compile and incremental CIL, it still shows the parameter. I did tried in multiple AX environments and they are behave the same. Unable to figure what went wrong..!

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi ax_evangelist,

    Did you try to make this parameter invisible in VS ?

    If you want to disable this parameter ( make it gray and not editable) you need to use UI builder class

    www.artofcreation.be/.../ax2012-sysoperation-part-3-sysoperationautomaticuibuilder

  • Community Member Profile Picture
    on at

    Contrary to my belief that form is fired even before VS comes in to pic, after making the parameter hidden in VS and redeploying,  it worked. Thanks Ievegen and Hari for the help. Very much appreciated.

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