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)
Setting Report Variables
sschafer2
Hi,
The problem I'm trying to solve (in version 2.5.1) is to display page n of m on the page header where n and m are the page number and total page numbers of a group, not the whole report. I've been able to compute the page number pretty easily in javascript and then I use reportContext.setPageVariable() to set it to a predefined page variable which I have put in the page header.
The problem I'm facing now is how to get the m value (the total number of pages for the group). I think that using a report variable as defined in the data explorer might do the trick but I can't figure out how to set it. While reportContext has a setPageVariable() it does not have a setReportVariable(), and I don't think setGlobalVariable() or setPersistentGlobalVariable() are what I want.
So, two questions really. Will a report variable give me the look-ahead capability I need to set the page counts, and if so, how do I set it?
Thanks
Steve
Find more posts tagged with
Comments
mwilliams
Hi Steve,
I don't know that there's a good way to grab the pages per group. The way I've done this before was to calculate the group pages based on the page break interval or an interval group within your group. I'll have to look around to see if there a way to use a report variable to access this value.
sschafer2
Update: I found out that you set report variables with reportContext.setPageVariable(). Report variables share the same namespace with page variables. The setPageVariable() function just has a confusing name