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)
Layout of input parameters
fwkeys
Hi....I've done a few BIRT reports, but am certainly no expert. I would like to arrange the input parameters to my report like the following, where hh, min, and sec are individual list boxes.
starttime: hh min sec
endtime: hh min sec
Normally, the parameters are arranged vertically like:
starttime:
hh
mm
ss
I am creating the report mainly using the design interface from within eclipse, with a few modifications to the BIRT jsp's. Is there a simple way to change the layout of the input parameters? Thanks for any help.
Find more posts tagged with
Comments
bhanley
You would need to modify the parameter request JSP to do this, and that would make for a pretty inflexible architecture going forward. Any other parameterized reports would use the same modified layout, evn if the parameters were not Date/Time.<br />
<br />
Why not just accept a string (you can use the display text to help them use the correct format). From there you handle splitting the values apart in the <strong class='bbc'><em class='bbc'>onInitialize </em></strong>script for the report. <br />
<br />
You can still have your values separate to all the components in your report. Make the parameters both hidden and not required. This will ensure they are not on the parameter request page. Then add an additional parameter to accept the full date/time string. Then populate your hidden parameters in <strong class='bbc'><em class='bbc'>onInitialize </em></strong>by manipulating the full date/time value submitted by the user.
fwkeys
Thanks for the suggestion. Accepting a String sounds like the easier route. However, I'm actually replacing an existing report, and this is the format that the customer is currently using. Hopefully, they will be OK with the new format. I really don't need the values individually and would have to concatenate them to use them anyway.
If I have to go with updating the jsp, I assume that I can check the datatype, and only modify the code if it is type "TIME". I'm not really sure what the modification would be. If it ends up that I have to replicate the existing report, I'll post again.
For future releases, it might be a nice feature to allow the designer to place parameters onto a grid. Just a thought...