Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to hide or show field in report extension?

(0) ShareShare
ReportReport
Posted on by 479

How do I show or hide a text field on my custom sales invoice report (via report extension) depending on a value of a certain field on the invoice.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: How to hide or show field in report extension?

    Hi jdrco,

    You can go to that Text box Property in the report design layout, and check the visibility property and then go to expression icon and put the values like below.

    =iif(First(Fields!Textbox.Value, "DataSet_Result")='Your value',false,true)

    and then click ok button after putting above code.

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,064 Super User 2024 Season 2 on at
    RE: How to hide or show field in report extension?

    Hi, If you are using RDLC, you can use the iif function below.

    https://docs.microsoft.com/en-us/sql/reporting-services/report-design/expression-examples-report-builder-and-ssrs?view=sql-server-ver15#DecisionFunctions

    pastedimage1652746485062v2.png

    Visibility is true when a certain field is True.

    pastedimage1652746581505v3.png

    In addition, if the field you mentioned is already in the DataItem, you don't need to use ReportExtension, you only need to modify the Layout file.

    Hope this helps.

    Thanks.

    ZHU

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans