At the risk of sounding like a right muppet...
This has got to be simple but I can't find a solution. I have a type-in prompt (can't use a value prompt for a number of reasons). The user can enter mixed or lower case but we want to display the typed in value in the report header (in a text item) in upper case, e.g. user types in Xyz001234 we need to show XYZ001234.
I display the prompt value using:
ParamDisplayValue('Policy Number')
I have tried upper(ParamDisplayValue('Policy Number')) but this just errors - (well no surprises there Sherlock...)
There doesn't appear to be a Report Function I could use.
I could go off to the database and use SQL to perform the case conversion:
select distinct policy_nbr
from policy
where policy_nbr = upper($Policy Number$)
i.e. a filter of [Claim Reporting].[Policy].[Policy Number] = upper(?Policy Number?)
and then display the results in a single column list but this goes against our development standards :-(
I have looked at the properties of a type-in prompt and I can't see anything there that would automatically convert the entered text to uppercase.
So, have I missed something simple or is this just one of those Cognos things?
Cheers
This has got to be simple but I can't find a solution. I have a type-in prompt (can't use a value prompt for a number of reasons). The user can enter mixed or lower case but we want to display the typed in value in the report header (in a text item) in upper case, e.g. user types in Xyz001234 we need to show XYZ001234.
I display the prompt value using:
ParamDisplayValue('Policy Number')
I have tried upper(ParamDisplayValue('Policy Number')) but this just errors - (well no surprises there Sherlock...)
There doesn't appear to be a Report Function I could use.
I could go off to the database and use SQL to perform the case conversion:
select distinct policy_nbr
from policy
where policy_nbr = upper($Policy Number$)
i.e. a filter of [Claim Reporting].[Policy].[Policy Number] = upper(?Policy Number?)
and then display the results in a single column list but this goes against our development standards :-(
I have looked at the properties of a type-in prompt and I can't see anything there that would automatically convert the entered text to uppercase.
So, have I missed something simple or is this just one of those Cognos things?
Cheers