Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Optional Parameters in Crystal Reports

$
0
0

Hi Fernando,

 

I am having exactly the same problem as you.

I have been struggling hard for several weeks without result.

So, I would like to know if you have found a solution.

-------

 

I also would like to use blank parameter prompts in CR2008 (previewed in SAP B1) for the foll. reason:

  • I use many subreports in my CR, and not all reports are needed for any one user.
  • Hence many parameter prompts are not applicable, but SAP B1 makes them mandatory
  • I got around this problem by using this trick:
    • I group all optional prompts on top of my Selection Criteria Screen
    • For each of these parameters, I create a default value starting with a dot.
    • For ex. if the parameter is "WhichStore", the default value is.MAIN   (for Main Store)
  • In this way, although I cannot create blank prompts, I can make it very fast to fill these by hitting TAB, period, TAB, period etc

 

-------

 

I found that parameter prompts BECOME MANDATORY if:

  • You use a Stored Procedure (with input parameters) as Datasource
  • You use the COMMAND WINDOW in CR2008 and create your parameters there

 

-------

 

You can make parameter prompts OPTIONAL only if you create them in Crystal Reports

  • Field Explorer -> Parameters -> New
  • But then you must use SELECT EXPERT to filter your data using the newly created parameter
  • You can put your datasource in the COMMAND WINDOW
    • The datasource can be a VIEW or a STORED PROCEDURE (but the SP must not have parameters)

 

--------

 

So, I can create blank parameters if I want, but unfortunately I am like you. I want to use Stored procedures WITH parameters - For only one reason: They can be designed ro run extremely FAST! Much faster than using views and Select Expert!

 

------

So, my problem is intact!

Have you sorted yours?

If not, you are left with only one choice: TAB, period, TAB, period etc

---------

Would appreciate a reply.

Best Regards,

Leon Lai


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>