Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting the description from the parameter array

Status
Not open for further replies.

synapsevampire

Programmer
Mar 23, 2002
20,180
US
Any idea how to do it?

I have a parameter which has an ID number for use with the pass through SQL. I have a description also to simplify the selection for the user (I only display the description in the parameter list).

I want to display what was chosen, but NOT the ID.

-k kai@informeddatadecisions.com
 
k,

Cystal does not allow you to get the description of the parameter field into your report.

Of course you could create a formula that decodes the parameter choices to the descrption and then display that.
I like the SELECT function for this. For example:

select {?param}
case "A" : "Apples"
case "B" : "Bananas"
default : "Pears"

(I have not had breakfast yet!)

I hope this helps. Howard Hammerman,

Crystal Reports training, consulting, books, training material, software, and support. Scheduled training in 8 cities.
howard@hammerman.com
800-783-2269
 
Thanks Howard, just as I feared.

I currently do a manual conversion from abbr to text, but that is bad long term because I intend to dynamically update pick lists, and I really don't want any business rules in the reports.

-k kai@informeddatadecisions.com
 
Of course you could create a table with the translation of the abreviation to the description. However, Crystal won't let you link on the paremeter field except by doing a sub-report. Uggh.

An then you will have another table to maintain. Howard Hammerman,

Crystal Reports training, consulting, books, training material, software, and support. Scheduled training in 8 cities.
howard@hammerman.com
800-783-2269
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top