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)
Moving Pages AfterRender
anonymoose
<p>I would like to move the last page in my report to the second position. Is there a way to move pages after a report has rendered?</p>
<p> </p>
<p>I tried hooking into the afterRender event on the rptdesign level, and using the following code but it didn't work:</p>
<div>
<pre class="_prettyXprint">
var pages = reportContext.getDesignHandle().getAllPages();
var lastP = pages[pages.size()-1]
pages.add(1, lastP);</pre>
</div>
<p>In fact, it seems that the afterRender is not even being called. (I proved this by putting an intentional synthax error in the script and seeing that no error was raised).</p>
Find more posts tagged with
Comments
anonymoose
<p>tumbleweed...</p>