Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Report # 4B : Parm Value and Text
nuraniuscc
Hi Mike,
I have a parameter called Month Whose Display Text is "Jan, Feb etc" and the Display Value is "01, 02 etc".
For Eg: If the User chooses January,
I can use params["Month From"].text to capture that and If I want to use the
value '01' (Which the user doesn't see), I can capture that value by saying
params["Month From"].value
Am I right so Far?
Now, I am using params["Month From"].text to display the Month name on the
Header. But, I am not getting it. It's blank on my report
What could be wrong? Should I do some thing to have the value show up on the Header?
Thanks
Nurani Sivakumar
Find more posts tagged with
Comments
mwilliams
Hi Nurani,
If you're using a crosstab, you don't need to put the parameter values in the header. The appropriate months will already be listed in headers above each column. The parameters are just used to limit the dataSet data to only show what you want. If you want to show the parameter values on the report as well to show the user what they selected, you can do that in a data element or dynamic text box outside the crosstab.
For your question:
.displayText will display the display text
-AND-
.value will display the actual value
If you don't set up a display text, the value is the default display text.
al91206
I've tried lots of things to try to get the display text of my parameter to show.
I've tried the following:
1. params["table_param"].displayText - this was in a dynamic text box - this just simply shows params["table_param"].displayText in the report - not the actual text or value - just the actual expression
2. <VALUE-OF>params["table_param"]</VALUE-OF> - this was in a text box using HTML and works, but if I add .displayText to teh parameter - it comes up blank
3. Just dragged in a report element onto the title - this works - but I want to add text, etc and I don't know how to do that w/ a report element - but I would prefer to do # 1 or 2 because I need to know how to create those elements on my reports.
Thanks in advance.
Al in SoCal
mwilliams
Hi Al,
What version of BIRT are you using? What type of parameter is it? This way I can try with the same setup. If you could send me a sample report made with the sample database, that would be even more helpful. Thanks.
al91206
We are using 2.3.2 - we downloaded from this site and are in the middle of evaluating the software.
I've attached a report design using the sample database.
Thanks for the help!
Al
mwilliams
Al,
This worked:
<VALUE-OF>params["Customer"].displayText</VALUE-OF>
al91206
Michael,
I added .displayText to the <VALUE-OF> entry and it comes up blank. Do you think it might be some configuration problem?
Here is what I put - I just copied your entry above into a Text box and selected HTML instead of Auto.
Is that what you did? Can you post your working example? I've posted what I came up with on this post.
Environment:
Datasource: Informix DB on linux RedHat server
BIRT 2.3.2 running on Windowns Vista
Thanks!
Al
mwilliams
Al,
I just added .displayText in the text box in your report design that you attached and it came up with the correct customer number.
I'm using 2.3.2 on Windows XP.