Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to hide the column and its heading in RDLC report

Posted on by 1,835

If the sale order line no is zero then header must be visible false...and sale order line no must not show here.

6303.UU.png

I m trying with column visibility property..but it is not working

=First(Fields!saleordlinno.Value, "DataSet_Result")<0

And for heading Sale Order NO is:

=IIF(String.IsNullOrEmpty(First(Fields!saleordlinno.Value, "DataSet_Result")), true,false)

Both are not working.

Manish

*This post is locked for comments

  • manish.yadav Profile Picture
    manish.yadav 1,835 on at
    RE: How to hide the column and its heading in RDLC report

    Very thanx. Binesh sir

    issue is resolved.

    manish

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: How to hide the column and its heading in RDLC report

    Hello Manish,

    Follow the Saurabh solution.

    In onafter trigger, Write something like:

    If saleordlinno > 0 then

      ShowLineCol := true

    Else

      Clear(ShowLineCol);

    // ShowLineCol is a boolean variable.

    Paas this variable in dataitem fields.

    In. saleordlinno column visibility write something like

    Iif(Fields!ShowLineCol.Value,False,True)

  • Verified answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    RE: How to hide the column and its heading in RDLC report

    Hi Manish,

    As it a column which may have diffrent values in diffrent report lines you cannot use it like the way you are trying.

    In both the condition that you are specifying which row record system should consider for testing the condition.

    The only way to acheive this is -

    You need to check that all lines appearing in report have your field value zero in the developer environment and if that is true then pass a boolean variable as true which can then be used for column visiblity.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans