News combit Dev Blog

End User Friendly Conditional Formatting

Posted: Wednesday, August 12, 2015 | 0 comment(s)
 
This is one of the major new features of LL21. Conditional Formatting is needed whenever you want to change properties depending on data, e.g. something like "red font if value is negative" or "highlight the background if value is greater than threshold". This allows to read a report at a glance and quickly get an overview of what areas of your data require a second look.

Of course, this can also be done in LL20, but it requires some knowledge of properties and formulas. You need to find the font color property, figure out how to use a formula for it and use a Cond() function that does the handling. If you want to add more conditions (e.g. bold font for one threshold and a highlight color for another), you quickly end up with a nested Cond() statement that can get quite complicated. The average end user will probably not be able to handle this gracefully.

Enter the brand new Conditional Formatting feature. This is a great way to combine easily accessible formatting rules in one place. You can enter cascades of conditions and you can even tell LL21 if a rule should stop further processing once it matches or if other rules should be processed additionally. For each value type there are loads of handy presets that make defining conditional formattings a piece of cake.

Let's do a quick walkthrough – imagine a customer list where you want to color-code the customers depending on their revenue share. You want different colors for shares below 0.2% (reddish) and those above 1%, 2%, and 3% (different greens). If you don't have the revenue share in your database, it could e.g. be calculated using the native aggregate functions I've blogged about before.

The table column now has a new property "Conditional Formatting":
 

New feature of version 21
 

Clicking on the "…" for the "Conditional Formatting" property of the revenue share column gives you the following dialog:
 

New feature of version 21


Now insert a new condition – a dropdown appears that presents you with a number of useful templates:
 

New feature of version 21
 

Choose the "Value is Greater Than…" template and enter the required number in the following dialog:
 

New feature of version 21
 

Now click on the "…" for the background property and choose the color as required:
 

New feature of version 21
 

That's it – adding the other conditions is quickly done following the same procedure. For this example, a darker green should be chosen for each percentage. For the >3% formatting, you could also change the font's color to white, as the contrast will look much nicer then. To do so, simply click the "…" for the conditional formatting's font style and select the required color:
 

New feature of version 21
 

Note the consistent usage of the new color picker UI throughout all dialogs – LL21 has really been streamlined for end user usability. This will make your application shine in the end user's eyes. The Conditional Formatting dialog finally looks like this:
 

New feature of version 21
 

And the final color coded report allows to see at a glance which customers have the largest revenue shares:
 

New feature of version 21
 

The same works for date and text columns, including suitable templates like date ranges or "Starts with" conditions. Conditional Formattings can also be applied to text object paragraphs and crosstab cells. They are a very user friendly, intuitive way to achieve what needed complex, nested formulas before or even was downright impossible.
 




Author: Jochen Bartlau
Head of Development List & Label

Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.


  

RSS
combit Development BlogRSS
What’s this blog for?
A place to share updates about the ongoing development of our products. General musings on the software industry included.
Archive
June 2021 (1)
May 2021 (1)
April 2021 (2)
March 2021 (1)
February 2021 (2)
January 2021 (1)
December 2020 (2)
November 2020 (1)
October 2020 (2)
September 2020 (1)
August 2020 (2)
July 2020 (1)
June 2020 (1)
May 2020 (2)
April 2020 (2)
March 2020 (2)
February 2020 (1)
January 2020 (1)
December 2019 (1)
November 2019 (2)
October 2019 (2)
September 2019 (2)
August 2019 (2)
July 2019 (2)
June 2019 (2)
May 2019 (1)
April 2019 (0)
April 2019 (1)
March 2019 (1)
February 2019 (1)
January 2019 (1)
December 2018 (1)
November 2018 (2)
October 2018 (4)
September 2018 (4)
August 2018 (2)
July 2018 (2)
June 2018 (2)
May 2018 (1)
April 2018 (1)
March 2018 (1)
February 2018 (2)
January 2018 (1)
December 2017 (1)
November 2017 (2)
October 2017 (3)
September 2017 (3)
August 2017 (2)
July 2017 (2)
June 2017 (1)
May 2017 (2)
April 2017 (1)
March 2017 (1)
February 2017 (1)
January 2017 (2)
December 2016 (1)
November 2016 (1)
October 2016 (4)
September 2016 (5)
August 2016 (2)
July 2016 (2)
June 2016 (3)
May 2016 (2)
April 2016 (3)
March 2016 (3)
February 2016 (1)
January 2016 (2)
December 2015 (2)
November 2015 (1)
October 2015 (4)
September 2015 (5)
August 2015 (2)
July 2015 (2)
June 2015 (2)
May 2015 (1)
April 2015 (2)
March 2015 (1)
February 2015 (1)
January 2015 (1)
December 2014 (2)
November 2014 (1)
October 2014 (1)
September 2014 (2)
August 2014 (1)
July 2014 (2)
June 2014 (1)
May 2014 (2)
April 2014 (1)
March 2014 (2)
+1 800 256 3608 (toll-free North America only)