MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now Learn More
Quote from: dougp on 08 Oct 2024 06:09:45 PMIn the Report expression dialog, there are tabs along the bottom, below Available Components. Looking at the Functions tab, I see a function named string2int32(). Maybe give that a go.
Quote from: cognostechie on 08 Oct 2024 07:08:19 PMYou said that the value is already numeric in your database so which value did you convert to a number?The value in the database is numeric. I fill the prompts creating the parameter that I want to display in the layout calculation with these numeric values. Nonetheless, ParamValue() and ParamDisplayValue() seem to always return the values in text format. Which is fine with me since I can use the function mentioned above.
Quote from: dougp on 08 Oct 2024 06:03:30 PMBut I don't remember ever seeing a red star next to a package or data module.
Quote from: dougp on 08 Oct 2024 06:03:30 PMHowever, I have not had success using multiple packages in a report.
Quote from: MrKlar on 08 Oct 2024 04:13:18 AMDear Cognos-fellows,
I wonder wether a parameter value, retrieved by either ParamValue('paramter_name') or ParamDisplayValue('paramter_name'), is always in text format?
In my example I set the "parameter use value" to a numeric field in the database. However, if I want to do numeric calculations with that "use value" in a layout calculation, I get an error ("The operand types [...] are not compatible.").Quote from: MrKlar on 08 Oct 2024 04:13:18 AMDear Cognos-fellows,
I wonder wether a parameter value, retrieved by either ParamValue('paramter_name') or ParamDisplayValue('paramter_name'), is always in text format?
In my example I set the "parameter use value" to a numeric field in the database. However, if I want to do numeric calculations with that "use value" in a layout calculation, I get an error ("The operand types [...] are not compatible."). I do not get the error if I to convert the value to a number at first.
Thank you for your answers.
Thank you for your answers.
Quote from: MrKlar on 08 Oct 2024 04:13:18 AMDear Cognos-fellows,
I wonder wether a parameter value, retrieved by either ParamValue('paramter_name') or ParamDisplayValue('paramter_name'), is always in text format?
In my example I set the "parameter use value" to a numeric field in the database. However, if I want to do numeric calculations with that "use value" in a layout calculation, I get an error ("The operand types [...] are not compatible."). I do not get the error if I to convert the value to a number at first.
Thank you for your answers.
BSP Software Documentation |
MetaManager Documentation and Knowledgebase |
Version Control Documentation and Knowledgebase |
BSP Software | Resources | About Us | ||
MetaManager | BSP Software Training | BSP Software | ||
Integrated Control Suite | YouTube Channel | Micro Strategies Inc | ||
Security Migration | IBM Cognos | |||
Integrated Management Suite | ||||