Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Setting default value to a parameter
EtienneCab
<p>Hi,</p>
<p> </p>
<p>I have a parameter "prg", wich contains a list of decimal values.</p>
<p>I have another parameter prgId wich contains a simple decimal value.</p>
<p> </p>
<p>How can i do for setting prgId as the default value of prg ?</p>
<p> </p>
<p>I tried with de field "default value" from the parameter prg , i tried also some scripts like</p>
<p>reportContext.setParameterValue("prg",reportContext.getParameterValue("prgId")).</p>
<p> </p>
<p>Thank you in advance for your responses.</p>
<p> </p>
<p>Etienne</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
JFreeman
<p>I am not sure I'm clear on exactly what you are asking.</p>
<p>Can you please provide more details?</p>
EtienneCab
<p>Hi,</p>
<p> </p>
<p>Here is my parameter prg, it's a list of decimal, this list comes from a dataset:</p>
<p> </p>
<p><img src="
http://imageshack.com/a/img910/5890/Kac2rf.png"
; alt="Kac2rf.png"></p>
<p> </p>
<p> </p>
<p>I have another parameter prgId wich is the current id of the prg, the parameter is set automatically from my webapp.</p>
<p> </p>
<p><img src="
http://imageshack.com/a/img538/4664/VTlyhZ.png"
; alt="VTlyhZ.png"></p>
<p> </p>
<p>Then we i run the report i have this:</p>
<p> </p>
<p><img src="
http://imageshack.com/a/img661/56/pOKbDu.png"
; alt="pOKbDu.png"></p>
<p> </p>
<p>I would like the parameter prg set with the value of prgId, is there a way to do this ?</p>
<p> </p>
<p>Thank you for your response.</p>
<p> </p>
<p>Etienne</p>