on 05-10-2011 2:16 PM
Hi All,
I have developed a crystal report, in which i have a refrence with SAP BW query as source. I have a parameter called company code(0cop_code in BW) from the bw which has the following options below.
multiple values - true
discrete values- true
ranges - true
I need to display this parameter values in the crystal report Header. I could do join formula, minimum and maximum formula if i have either multiple values as true or ranges as true. I could not display ranges and multiple values.As the values returned is not a string, i am trying to convert that to text by TOTEXT(). I am getting an error saying number,boolean, amount,string required here.Dont we have a option to overcome and display the parameter values in the crystal report header.Can you please suggest.
Thanks & Regards,
Magesh anandan.
Magesh Anandan
This problem, ( error saying number,boolean, amount,string required ) tells me either
you are mixing field types in your if-then-else formula - when you have multiple tests in a formula, the result for all tests must be the same type of field, either all text, all numbers, etc.,
or
you are missing something in your formula, probably a quote.
If you post the exact formula here and we can look at it.
Debi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ian,
Thanks for the reply . These parameter conditions cannot be changed at the crystal report level, as it reflects from the BW query. This variable is a select options variable, so both ranges and multiple values will be enabled as true. Is there any other way to display the parameter in the header ?
Hi Debi,
This is a select option paremeter, so the parameter will be of type array. Do you think anyother way to populate this,both ranges and multiple values.
Thanks & Regards,
Magesh Anandan.
A multiple value parameter is an Array, so join() can be used with such parameters. Have a range withing the parameter is wht is causing the problem.
Never tried to display such a mixed parameter so have no idea as to how you would go about it. Normally with a standard range parameter two formula would return limits
minimum(?rangeparam)
maximum(?rangeparam)
Ian
Agreed, a parameter with multiple values is an array, but it seems crystal does not see it that way with regards to the Join function.
Can the parameter data be used in a formula as input for an array and then use the join function on the formula to display it?
Magesh, Take a look at the function MakeArray() and see if you can make it work for you.
Edited by: Debi Herbert on May 12, 2011 12:22 PM :
Is your parameter a range? or Does it simply accept multiple values?
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.