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 NAV (Archived)

Row Visibility within reports

(0) ShareShare
ReportReport
Posted on by

Hello, How Can I write in Visual Studio to hide a row IF the a button on the Item Card is Ticked. 

I have a button "Qa Inspection In" on the item card. If this is ticked my report it should display the row. If it is unticked the row should be hidden. 

I'm thinking it's something along these lines..

==iif(Fields!Item_QaInspectionIn.Value, TRUE *Then Show, otherwise Hide*

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rajasekhar@MS Profile Picture
    5,569 on at

    Hi

    You can write the Visibility esxpression like below

    =IIF(Fields!Item_QaInspectionIn.Value, FALSE,TRUE)

  • Verified answer
    Mohana Yadav Profile Picture
    60,993 Super User 2025 Season 2 on at

    Did you try

    ==iif(Fields!Item_QaInspectionIn.Value, TRUE ,FALSE)

  • Community Member Profile Picture
    on at

    Thank you both. How could I Adapt it to say if it's empty insert A text box in it's place saying like "Qa Inspection Not Required"

  • Verified answer
    Mohana Yadav Profile Picture
    60,993 Super User 2025 Season 2 on at

    you need to add a new row add with text box and text required and visibility condition just like above

  • Community Member Profile Picture
    on at

    Thank you again, One last question.

    I have a box which says "Signed:" which appears if the box is visible. How can I Change this text to say "QA NOT REQUIRED" If you imagine the box to not be visible.

    To rephrase. If the button is ticked, Display what's currently existing. If the box is unticked Change the text to say "QA NOT REQUIRED".

    Thanks

  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Hello,

    See the bellow Image. In this scenario if button checked then Row will hide.

    If you want show on button checked then just changes the order Like:

    =IIF (Fields!ButtonTicked.Value,FALSE,TRUE)

    4848.0.png 

    Note: in image expression, it missed Fields!, so don't confused, write as upper.

    __________

    For BOX

    If box is a textBox then you can write in TextBox expression like:

    =IIF (Fields!ButtonTicked.Value,"Signed","QA Not Required")

    IF Both Controls are different then put two controls in overlapped and write hidden expression as you want.

  • Community Member Profile Picture
    on at

    Thank you that's very helpful!

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans