Login / Register  search  syndication  about

          George Jensen's Blog

George Jensen on Reporting, Business Intelligence, Crystal Reports, Visual Analyzer, and more.

Shading the the Background Color of a Section in Crystal

I have done this in one or two of the SalesLogix Crystal reports I worked on in previous posts to help separate out records.  I recently had a client ask me how to do this and when I looked back through the posts I discovered that the information is buried deep in one of the many blogs I have written.  So the easy way to shade every other row in a report is as follows.

For this task I use the RecordNumber function that comes with Crystal.  This function basically returns the record number in the order it is displayed in your report.  I want to shade every other record so I will use a formula to identify odd number records.  This is the formula I came up with:

if right(Cstr(RecordNumber),4) in ["1.00","3.00","5.00","7.00","9.00"] then crSilver

else crWhite

In this formula I convert the RecordNumber function from a float to a string.  I then take the forth number from the right side of the value, and see if it is in an Array of odd numbers formated as string for the comparison.  If the number does match then color Silver will be given to the back ground.  If not the color white.

This formula is added through the Section Expert in the details section of my report.  Remember that you can easily open the Section Expert by right clicking in the section you want to apply the formula to and selecting the "Section Expert" value from the list that appears.  When the expert opens you will see two tabs on the right side of the screen ("Common" and "Color").  The "Color" provides you a place to add the formula. 

Quick and easy. 

Remember to get all of our Free SalesLogix Reports here...

Thanks for reading my blog. Until next time - Be well! Do good things! Most of all  - Keep SmilingSmile

 

What's This?
  
Bookmark and Share

About George Jensen

   George Jensen is a Senior Developer for Customer FX Corporation.


Related Content
   Preserving Custom Roles, Secured Actions, and Assignments in Infor CRM (formerly Saleslogix) Upgrades
When upgrading between levels of Infor CRM one of the tasks that is commonly needed is to run a batch/exe
Posted on Dec 16, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Easily Showing and Hiding Tabs at Runtime in Infor CRM (Saleslogix)
Showing and hiding tabs in the Infor CRM (Saleslogix) client should be an easy thing. It should be someth
Posted on Dec 16, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Checking Infor CRM (Saleslogix) Picklists for valid data
This week I received a question about a particular picklist. One of the picklist items, when chosen, wou
Posted on Dec 05, 2014 by Dale Richter to Infor CRM Questions & Answers
 
   InforCRM (formerly SalesLogix) Web Issues with McAfee VSE 8.8 Patch 4
We have see an issue with SalesLogix v8.0 and v8.1 web clients where randomly all users are bounced due t
Posted on Dec 05, 2014 by Mark Duthoy to SalesLogix Support
 
   Avoiding the Dirty Data Message When Programatically Redirecting to a Record in Infor CRM (Saleslogix)
In my last post I wrote about using the OnClientClick property of a control (or button) to run JavaScript
Posted on Dec 02, 2014 by Ryan Farley to Ryan Farley's Blog
 
Comments

 

Good Practices for CRM said:

Quick and easy. Most SalesLogix users also use Crystal Reports, and if you know what you are doing there

February 10, 2010 4:48 PM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register