Author Topic: Paramdisplayvalue and paramvalue !!!  (Read 1054 times)

Offline sathish_cognos

  • Full Member
  • ***
  • Posts: 7
  • Forum Citizenship: +0/-0
Paramdisplayvalue and paramvalue !!!
« on: 25 Mar 2011 04:32:20 am »
what is the difference between Paramdisplayvalue and paramvalue ???

paramdisplayvalue - returns a string of the parameter display value of the variable.
paramvalue - returns a string of the parameter value of the variable.

so if we use two both together the returning value would be same, is there any specific usage for that !!! thanks ??? ???

Offline Arpit Agrawal

  • Arpit Agrawal
  • Community Leader
  • *****
  • Posts: 91
  • Forum Citizenship: +3/-0
  • Have no fear of perfection--you'll never reach it.
    • Infocepts
Re: Paramdisplayvalue and paramvalue !!!
« Reply #1 on: 14 Jun 2011 12:51:35 am »
Hi Sathish,

Please find below the details
ParamDisplayValue() - Displays the value of 'Display Value' item (Value Prompt Property)
ParamValue() - Displays the value of 'Use Value' item (Value Prompt Property)
So suppose you create a parameter called product in your report Which can be based on ProductID/ProductName
So using Paramvalue() you can filter out data of your report based on product the same can also be ac hived using display value,But as filtering on character field impacts on report performance you should go with ParamValue in this case.
Param Display value can be very usefull for creating Layout calculations


Hope this helps:)
Thanks and Best regards,
------------------------------------------------------------
Arpit Agrawal | InfoCepts | www.infocepts.com
------------------------------------------------------------

Offline MrTy

  • Full Member
  • ***
  • Posts: 10
  • Forum Citizenship: +0/-0
Re: Paramdisplayvalue and paramvalue !!!
« Reply #2 on: 28 Sep 2011 07:05:09 pm »
Why does paramDisplayValue sometimes not display the display value, but the value to use?  I have that situation right now with a report.  The query the prompt (an inline prompt) is based on uses a query that returns;

Use     Display
045     WCH

The prompt displays 'WCH.'  However, when I add a text field and use ParamDisplayValue(?prompt1) it returns '045'

What gives?  This result is inconsistent among my reports.

Offline MrTy

  • Full Member
  • ***
  • Posts: 10
  • Forum Citizenship: +0/-0
Re: Paramdisplayvalue and paramvalue !!!
« Reply #3 on: 29 Sep 2011 08:22:32 am »
I figured this out.  It was not properly loading the display value because the inline prompt had a default value.  Once the prompt value is changed or a reprompt executed, it displays correctly.

If one wants to use a default value on inline prompts, there is a way to have it display properly when initially rendering the report.