Login / Register  search  syndication  about

          George Jensen's Blog

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

Working with Null or Empty Characters in Crystal

This is the start of a series of post working with the many functions used in the Formula Workshop of Business Objects Crystal Reports.  These functions are often used while reporting out of Sage SalesLogix database.  Today I thought I would start out with a Null values.

What is a "Null" character? www.iwebtool.com defines a null character as:

A null character is a character with all its bits set to zero. Therefore, it has a numeric value of zero and can be used to represent the end of a string of characters, such as a word or phrase. This helps programmers determine the length of strings. In practical applications, such as database and spreadsheet programs, null characters are used as fillers for spaces.

Put simply and in reference to Crystal Reporting, it is when nothing is displaying in your report field. 

Most of the time this occurs when records, such as an Account record, is created in a table. 

For example, the Insert New Account/Contact screen collects the data your company has chosen to be required for the creating of an Account in your system. 

 

The data fields that are not populated or not included on that screen are populated with a Null value.  We can look at the raw data in SQL to see all of the null values that are sitting in the database fields as place holders.

One other thing to look for are records were a value was added but then removed.  These empty fields are basically the same thing as Null Characters but they are called out separately in formulas.

In my example today I will use the Account Division field. 

When dealing with Null or Empty values in Crystal's Formula Workshop, this is the Syntax I often use where I want to call out records where the condition exists :

IsNull({ACCOUNT.DIVISION}) or {ACCOUNT.DIVISION} = ""

I also use this to help me suppress records from a group or the detail sections of my reports.  In those times where a value is needed then you could use this formula in a Custom Formula field

If IsNull({ACCOUNT.DIVISION}) or {ACCOUNT.DIVISION} = "" then "Unknown" else {ACCOUNT.DIVISION}

Now if I want to go the opposite way where I am only looking for records where there is data in the field I often just use the following:

{ACCOUNT.DIVISION}>""

Some times you absolutely need to use the "is not null" and that is written.

Not(IsNull({ACCOUNT.DIVISION}) )

With this you would get the empty values in your list.

Well there it is, the first of many to come. I look forward to learning and writing more about functions in Crystal Reporting.

Hey, do not forget all of those free download of reports.  These are great way of getting a good start on whatever report you are working on.

Take care - Geo

 

What's This?
  
Bookmark and Share

About George Jensen

   George Jensen is a Senior Developer for Customer FX Corporation.


Related Content
   Saleslogix XBar Installation
When installing the new XBar application I found the instructions a little vague so I thought I would pas
Posted on Jul 18, 2014 by Mark Duthoy to SalesLogix Support
 
   Using an Array - SQL vs Crystal.
In data, an Array is used to store multiple values in a single variable.  I often use Arrays to qual
Posted on Jul 17, 2014 by George Jensen to George Jensen's Blog
 
   "Saleslogix’s affordable pricing and usability allow the product to rise above competitors in the space" - Info-Tech Research Group, Inc.
"SalesLogix’s affordable pricing and usability allow the product to rise above competitors in the sp
Posted on Jul 14, 2014 by Scott Weber to SalesLogix Product Blog
 
   Saleslogix Default Group Layout
How can I default the formatting of columns in my Saleslogix groups?
Posted on Jul 03, 2014 by Dale Richter to SalesLogix Questions & Answers
 
   Changing Contact Process Statuses in Bulk
Recently, I was asked if it was possible to cancel a group of running contact processes.The answer is yes
Posted on Jun 30, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments

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