on 11-19-2008 11:21 PM
Hello...
I'm trying to create a selection formula on a hierarchically grouped report where the input is in the form of "1,2,3,4,23,45" as string. How do I create a statement like:
{view_assets.AssetId} in [1, 2, 5]
The problem is that after the "in" it's looking for a number. How do I convert the input string to a number that will work with "in"?
Thanks in advance,
Donald
Hi Donald,
I think it is not possible to add the string in record selection formula to comapare it with numeric field. For this I think it is better to create a command level parameter and link this to subreport link parameter and your command in your subreport should be like this
select * from table where field in [{?Parameter}]
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Donald,
You need to encapsulate each ID with quotes so Crystal knows they are strings. Ultimately your formula you are passing should looked like:
{view_assets.AssetId} in ['1','2','3','4','23','45']
Now, I am under the assumption {view_assets.AssetId} is defined as a String datatype.
Good luck,
Brian
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.