Skip to main content

Notifications

Microsoft Dynamics NAV forum
Unanswered

How to use if statements in Word layout?

Posted on by Microsoft Employee

Hey guys,

do you know, if it possible to use if staments in the Word layout?

To make fields visible on my reports , I use the XML mapping in the Word layout.

So far it has always been enough to print everything I wanted.

Now I have another situation, because I want to print only specific fields if a certain condition is true or false.

Do you know how to do that in Word layout?

I try something like this:

IF_5F00_Condition.PNG

Unfortunately it is not working, it prints me all the time "Gentlemen", but it has to print "Contact_Greenting", which contains "Lady".

Do you know the syntax?

Do you know to how insert my fields through the XML mapping?

Thank you ;)

Categories:

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans