Skip to main content

Conditional Colouring in NAV 2013 Pages

Hi all,

As we were facing problem in Role Tailored client till NAV 2009 R2 about the colors.

Customer wanted conditional coloring of rows based on some condition but was not possible in Role Tailored Client.

With NAV 2013 Microsoft have come up with a level of Conditional coloring  yeah still have some limitations. The number of colors that are supported are fixed.

Let's see how is it there -

I was just checking pages in NAV 2013 and seen this.

If you remember a property of Field in Page i.e StyleExpr which used to have value True or False is now have been changed and can take variables as value.

Just have a look in Page Customer Ledger Entries, Field - "Document No.". Below is the property for the field.

So the property have value StyleTxt which sets onAftergetrecord() and get value from function setstyle as shown below.

Then i navigate to Table 21 Cust. Ledger Entry for the function definition and below is the code written in the function.

so i guess its one of the cool feature that every customer of every partner wanted. So lets use it with customer database.

Here is how the customer ledger entry page look like.

You can see lines in Red Color based on condition.

Saurav Dhyani


Post a Comment

Popular posts from this blog

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing - 

Dynamics 365 Business Central 2021 release wave 2 (BC19) Released.

Hi Readers, As we all were expecting Microsoft have Released Business Central 2021 Release Wave 2 Today a.k.a BC19. In this article we will see what all is announced with the General Availability.  Starting Today Customers & Partners can start using Business Central 19. #msdyn365bc #bc19

Error After Restore SQL Backup of NAV 2013 Database

Hi all, we are facing a conman issue during restoring a SQL Database backup restored for NAV 2013. While Trying to run object from Object Designer we get below listed error (even the service is configured properly) - --------------------------- Microsoft Dynamics NAV Development Environment --------------------------- There are no NAV Server instances available for this database. You must ensure that a NAV Server instance is running and is configured to use the database before you perform this activity. --------------------------- OK    ---------------------------