Arcana Development logo
Site Search:
  • Home
  • Products
    • Products Overview
    • adTempus
    • Report Commander
    • Arcana Scheduler
  • Support
    • Support Home
    • Knowledge Base
    • License Management
    • Contact Support
  • Community
  • Purchase
    • Pricing and Ordering
    • Additional Purchasing Information
  • Contact
  • About Us
  • Forum HelpHelp
  • Log In
  • Register

Community

Arcana Development Forums > Report Commander > General > Send Null value in a parameter
{1}
##LOC[OK]##
{1}
##LOC[OK]## ##LOC[Cancel]##
{1}
##LOC[OK]## ##LOC[Cancel]##

General Discussion Send Null value in a parameter RSS Feed Icon

You must be logged in to reply to this topic.

1
(Showing 1 to 8 of 8)
Avatar
ckb
Joined: March 4, 2010
Posts: 4
Posted March 4, 2010 9:18:44 AM
 

Hello,

We are wanting to send a null value to a report parameter from the command line.  Is there a way to do this?

Thank you very much in advance!

 
Avatar
J.D.
Arcana Development Staff
Joined: September 23, 2007
Posts: 58
Posted March 4, 2010 10:23:11 AM
 
To pass a null value, use the string "<NULL>". I think this only works for stored procedure parameters, because regular Crystal Reports parameters don't accept null values. For optional parameters (supported in recent versions of Crystal Reports) use an empty string ("") instead.
 
Avatar
ckb
Joined: March 4, 2010
Posts: 4
Posted March 4, 2010 11:10:39 AM
 

I tried "<NULL>" and just <NULL>, but I get the error:

Error: Failed to set parameter "@accntNum" to "<NULL>": Cast from string "<NULL>" to type 'Double' is not valid.

When I try "", it does not send the NULL on to SQL. 

Any other suggestions? 

 
Avatar
J.D.
Arcana Development Staff
Joined: September 23, 2007
Posts: 58
Posted March 4, 2010 11:28:51 AM
 
What version of Report Commander are you using? I think the null support was not added until version 1.2, or maybe even slightly after that, so you should be using the latest version (1.4).
 
Avatar
ckb
Joined: March 4, 2010
Posts: 4
Posted March 4, 2010 11:32:50 AM
 
We are using Version 1.2 build 103 :(
 
Avatar
J.D.
Arcana Development Staff
Joined: September 23, 2007
Posts: 58
Posted March 4, 2010 11:36:00 AM
 
Then you need to install version 1.4 from the download page. The license you have already will work for version 1.4.
 
Avatar
ckb
Joined: March 4, 2010
Posts: 4
Posted March 4, 2010 11:39:52 AM
 
Yes, but then we have to test to make sure everything will work the same with the new version.  We run a lot of production reports using report commander.  Or, can I have two different versions residing on the same server?
 
Avatar
J.D.
Arcana Development Staff
Joined: September 23, 2007
Posts: 58
Posted March 4, 2010 12:03:08 PM
 
You cannot have 2 different versions of Report Commander on the same computer.
 
  Copyright 2012 Arcana Development, LLC. Use of this site signifies your agreement to the terms of use and privacy policy.