Skip to main content

Notifications

Announcements

No record found.

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

How to add or condition in rdlc report layout in business central

(0) ShareShare
ReportReport
Posted on by 153

Hi Guys,

I am facing one query in rdlc expression.

In my example : in my report layout there is one field. i.e. Authorized By .

and condition for that field is : If there is a value in field -> approved by or Field -> approved by name then only signature will be taken.

and all this fields have mediaset data type.

i am writing below expression on rdlc but still signature is not show on report.

 =iif((Fields!ApprovedBy.Value<>" ") Or (Fields!Apprv__by_Procurement_HOD_Name.Value<>" "),Fields!Authorised_By_Signature1.Value,False).

Is any way to do this.

  • GER_Nico Profile Picture
    GER_Nico 115 on at
    RE: How to add or condition in rdlc report layout in business central

    I think the easiest would be to add the signature field to your report and show or hide it based on your condition.

    Or have I misunderstood what you want to achieve.

  • Nilam Bhor Profile Picture
    Nilam Bhor 153 on at
    RE: How to add or condition in rdlc report layout in business central

    No, i dont want to hide field.

  • Suggested answer
    GER_Nico Profile Picture
    GER_Nico 115 on at
    RE: How to add or condition in rdlc report layout in business central

    Are you using the "Hidden" property in RDLC to show or hide the field? This property takes true or false, true hides the field and false shows it. The result of your condition is true if one of the fields has a value, so then the field is hidden. So you have to replace <> with =, to show the field, if one of the fields has a value. Also, an empty field doesn't contain a space, so use "" instead of " ".

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans