Print Page | Close Window

??? Reading Parameter Default Values

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=610
Printed Date: 03 May 2025 at 7:43am


Topic: ??? Reading Parameter Default Values
Posted By: peter
Subject: ??? Reading Parameter Default Values
Date 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.

 



Replies:
Posted By: hilfy
Date 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


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: peter
Date 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;
 
 
 


Posted By: hilfy
Date 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


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window