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!

A parameter that browses...it has to be simple, but... 1

Status
Not open for further replies.

sayerjoe

Programmer
Apr 9, 2002
3
US
This may seem simple and I've done it with other products, but I just can't figure it out with Crystal.

Here goes: I want create a parameter that will refresh the default values (browse for data in the field in the database) each time the report is refreshed. New data is added to this database all the time and I want the parameter to offer the user an up-to-date list when they run the report.

All I've figured out so far is how to set the default values as a static list.

{?ID} = {NAMES.ID}
"ID" is the parameter and I want it to browse updated data in the field "NAMES.ID" every time the report is run.

Any help would be greatly appreciated!

Thanks,
Joe
 
Thanks for the info.

I thought the lack of cascading parameters was the MAJOR pitfall...maybe that's the CAPTAIN pitfall and this is the MAJOR one? Sorry, couldn't resist...I'm so frustrated with this tool. Oof!

I really appreciate your help though.
 
Yeah, they really suck when it comes to parameters, and in my last extended phone conversation about them, they stated that they had no current requirements to handle parameters any more intelligently in the future...

-k kai@informeddatadecisions.com
 
check out Ido is a very good contributor to this forum and he has a solution to this dilemna - DataLink Viewer - which links parameter fields to live data.

I have not tested it but I have used some of his pother products and I believe this will be just as solid.

Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
 
Good point, dgillz, and you're right, Ido's stuff is first rate.

If you're going to consider external code, you might also keep in mind that you can set parms from VB, CSP, etc., so there's nothing that prevents you from handling parms externally, I was addressing parms from within CR, which is poorly conceived and implemented.

-k kai@informeddatadecisions.com
 
Thanks for the kind words... :eek:)

Yes, DataLink Viewer:
does both Dynamic and "cascading" parameters.

You just need to create a crystal report as the source for each parameter you want to make dynamic.

A diagram showing how the cascading functionality is achieved is available at:

Cheers,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thanks so much for the info! We are currently trying to decide whether to even use defaulted data in the parameter fields - this discussion helped quite a bit. I was wondering how the DataLilnk Viewer responds to reports via the internet - does it still refresh the default values appropriately?
 
DataLink Viewer is an application that you run on your PC to view Crystal Reports. It is not a web server component so it can't respond to web browser requests.

Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Is this Crystal report used within VB? If not, the above advice is the only solution I can think of. If this Crystal report is used within VB, you can populate the parameters at run-time in the CRViewer Form. You will have to use an ADO (OLEDB or ODBC)connection source, but that is standard for VB applications anyway, although DAO is still used.

If you are using these reports within VB let me know, I can post some code to get you started.
 
Thanks. The empathy and the technical advice has been great!
Actually, I just downloaded VB 6 from our corporate software distribution center. So yes, I do plan to create a "front end" for this and my future crystal reports through VB.

I'm connecting via ODBC, so your stuff should work. Feel free to post away! I'm all ready to copy and paste (and take credit with my local managment of course...:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top