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)

Repost : what can be the expression to hide a column based on value of NoYesId parameter in SSRS Report in AX 2012

(0) ShareShare
ReportReport
Posted on by 1,355

Hi to all,

                 I have a field called origin in tmp table with data type string, and I have a NoYesId type parameter called origin on dialog box ( Its checkbox ).


      Now I want to write a expression to hide my Origin field on the report when checkbox is unchecked and display the field on report when its marked.


Please help. Thanks in advance

*This post is locked for comments

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

    I think by mistake you have repeated same question in another thread. Kindly follow up there

  • Verified answer
    syed baber Profile Picture
    11,633 on at

    Hi Ax_Tushar,

    Try the following code options in hidden expression for your origin field:

    =iif(Parameters!Origin.Value = "Yes", false, true) or iif(Parameters!Origin.Value = 1, false, true)

    I can't exactly remember, if NoYes enum returns value "Yes" or 1 in SSRS report. You can try and one of this should work.

    Please let me know if you have further queries.

    Thanks,

    Baber.

  • AxTushar Profile Picture
    1,355 on at

    Hi Baber Qwais,

                               The first one worked. Thank you very much may god bless you. :)

  • syed baber Profile Picture
    11,633 on at

    Glad that it helped. You welcome.

  • Community Member Profile Picture
    on at

    where is this code is used???

  • Community Member Profile Picture
    on at

    In SSRS reports, visibility property of the column

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