on 01-15-2013 6:24 PM
I have an Excel document which has 7000+ login IDs which I need to use as parameters.
I have added them as a static parameter, and can use them in my report when I am looking at the Login ID table. I have to manually select each page and pull all Available Values into the Selected Values filed. This works, but I would like to find a more efficient way to do this.
On top of that, I need to parse a "Description" field (free form) for those same login IDs. I have been trying to find some way to use the Like function with the Parameter.
I have tried using Like "*" + {?LogIDs} + "*" in the Select Expert. But when I run the report, Crystal blows up and shuts down.
I have tried putting it in a Formula, but I get an Array error message.
Any help would be greatly appreciated.
Hi David,
Alright, one issue at a time.
For the 1st one I guess you're trying to see all the values in a single list rather than having to browse through multiple pages to select the values in the prompt, isn't it?
This is controlled by a registry key setting which limits the values to 200 per page/batch.
What version of CR are you using?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
To increase the batch size, browse to:
HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports\ReportView
and look for a key called 'PromptingLOVBatchSize'. Double-click the key and select 'Decimal' and set the value to 5000. Then, make sure you select 'Hexadecimal' and click OK. (We've noticed sometimes that the value is not saved unless we keep Hexadecimal selected).
Restart Crystal Reports designer and you should have all the values in one batch.
-Abhilash
Hi,
Try setting default value for parameter as "ALL" and add below statement to Select Expert:
If {?Parameter}= 'ALL'
Then {Database.Field} like '*'
Else {Database.Field} = {?Parameter}
Thanks,
Jothi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
to add to Jyothirmayee's suggestion and sorry Abhilash for interupting your piece of the thread, i'd recommend ensuring that the select statement is passed to the database.
to ensure that the select is passed to the database, you'll want to structure it so that it's something like:
{field} = (result)
where the result could be a set of if then else statements, a formula containing a like clause etc.
i know that doesn't explain it that well, so please see the blog post here for a detailed set of instructions.
cheers,
jamie
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.