Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: ??? Reading Parameter Default Values Post Reply Post New Topic
Author Message
peter
Groupie
Groupie


Joined: 08 Apr 2007
Location: United States
Online Status: Offline
Posts: 51
Quote peter Replybullet Topic: ??? Reading Parameter Default Values
    Posted: 01 May 2007 at 2:20pm
Hi,
So much for the Crystal Reports Designer !!!
Can I read/search all the Parameter's default values ?
Here is what I need:
1) I had a Parameter called BatchType that has a list of about 50 types
such as :
24 Hour Double-Sided
24 Hour Single Page
24 Hour Single-Sided
48 Hour Double-Sided
and these value are populated at Designe time.
2) At run-time user can pick one of them (Discrete value) and this values will be in {?BatchType}. {?BatchType} is not an array and contains only 1 value selected.
 
During processing I need to find out all the default values by a Formula.
CAN I DO IT ?
 
Please help.

 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 02 May 2007 at 1:28pm
By "default values" do you mean all of the values in a list?  If that's the case, I don't think you can access the values.  If you need them in a formula (which is looks like you probably do, you'll need to hand code for them.
 
-Dell
IP IP Logged
peter
Groupie
Groupie


Joined: 08 Apr 2007
Location: United States
Online Status: Offline
Posts: 51
Quote peter Replybullet Posted: 06 May 2007 at 8:58pm
Thank you for taking your time to give me some help.
YAH. I would have to hard code the list. I found the items in the list accessible if they are dropped in the multiple-values box. Dont you feel annoyed working with  Crytal Reports with or the limitations !!!
 
NOW, let's see if CR can do this.
 
CAN IT BE POSSIBLE  TO MAKE the special field: "Current CE User Name"
available inside my stored procedure so that I can do SQL using its value to filter data such as:
 
CREATE PROCEDURE sel_userdata (  
 )
 LANGUAGE SQL
 RESULT SETS 1                        
P1: BEGIN
 
--- The question is right here ???
DECLARE sCEUserName = Current CE User Name
 
DECLARE c_1 CURSOR WITH RETURN FOR    
SELECT * from USER_TAB where USER_TAB.username = sCEUserName
  
 -- Open Cursor -
 OPEN c_1;
 
 
END P1;
 
 
 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 07 May 2007 at 7:23am
You'd have to be able to pass that information into the stored procedure as a parameter.  I've never specifically worked with CE, so I'm not sure how you would get that information to pass it in.
 
-Dell
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.016 seconds.