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
   Mobile 3.0.3 for Saleslogix v7.5.4, v8.0.0 & v8.1.0 is now available!
Saleslogix Mobile v3.0.3 is now available in the customer portals. This update addresses all issues int
Posted on Apr 14, 2014 by Scott Weber to SalesLogix Product Blog
 
   Editing Filters in Saleslogix Web Client 8.0
Is it possible to add or remove Saleslogix filters from the List view in Accounts?
Posted on Apr 08, 2014 by SalesLogix Support to SalesLogix Questions & Answers
 
   Creating a Unique Saleslogix table ID in a SQL Function
A couple of months ago Ryan Farley wrote an article about how to use a SQL stored procedure to create a S
Posted on Mar 25, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Saleslogix Integration with Google - WOW!
Saleslogix will be releasing their Google Integration this month and from what I have seen, it is fantast
Posted on Mar 18, 2014 by Scott Weber to SalesLogix Product Blog
 
   Global Joins in the Saleslogix Web Client
Question: How can I make a Global Join stick in the Saleslogix Web Client? Currently, when I create a
Posted on Mar 07, 2014 by SalesLogix Support to SalesLogix Questions & Answers
 
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