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)
Couldn't add pagination and dynamic parameter setting both using IRenderTask
saravanam
I have added pagination using IRenderTask in my birt portlet but when I set a parameter value using IRenderTask.SetParameterValue or setParameterValues(HashMap) is not working. But for setting parameter if I use IRunAndRenderTask it is working. But using IRunAndRenderTask I can not achieve the pagination. Is there anyway I can do both using IRenderTask itself?
Any help on this will be of great.
Find more posts tagged with
Comments
JasonW
Parameters are processed in generation phase. You need to set parameters on the RunTask. This will create a rptdocument. You can then use the RenderTask to render a page range.
Jason
saravanam
Thanks Jason. It is working. Since the parameter has to be set in the generation phase whenever the parameter changes we need to generate the rptdocument. Will that not affect the system resource utilization? Just wanted to know will there be a better solution for this.
JasonW
When you change parameters it does require rerunning the report which does have an impact, but how much will depend on how the queries are written and what type of hardware they are running on.
saravanam
Thanks for the Info Jason.