Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Alert Report Message Post Reply Post New Topic
Author Message
gaurav kanthed
Newbie
Newbie


Joined: 19 May 2009
Location: India
Online Status: Offline
Posts: 9
Quote gaurav kanthed Replybullet Topic: Alert Report Message
    Posted: 03 Jun 2009 at 6:01am
Hi All,
 
I have one parameter which is accept date in the format 'yyyymmdd' if format is wrong or any other value put like string then it should alert me please enter the correct format then display report.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 03 Jun 2009 at 6:40am

Crystal is not a programming language.  It will not validate your date string, it will just use it.  You might create a formula that will read the parameter and if it incorrect will change the report title or show some text on the blank report, but there is no alert functionality.

A formula is the best that you can do, but if the data is a string, and the user entered the wrong value, the report will either a)display the valid data for the incorrect parameter or b)display nothing since nothing matches.
 
 
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 04 Jun 2009 at 6:15am
Hi
 
yes you can do that
 
CURRENTLY YOU HAVE DATE PARAMETER ,if you enter incorrect Date format do you get the message below
 
 "This parameter is of type \"Date\" and should be in the format \"yyyy-mm-dd\" where \"yyyy\" is the four digit year, \"mm\" is the month (e.g. January = 1), and \"dd\" is the number of days into the given month.";
 
if yes it is coming from the variable var L_BadDate
which has been assigned text string you can change the Text to below or what ever you want to display
 
var L_BadDate = "Please enter the date in correct format.";
 
the above code could be found in the following file promptengine_strings_en
path
C:\Program Files\Business Objects\Common\3.5\crystalreportviewers115\prompting\js
 
I have crystal XI release 2
 
Cheers
Rahul
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.