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)
Inserting Dynamic data in Master Page
vensw
Hey There,
Can we have dynamic data in a Master page. Thanks !!
Find more posts tagged with
Comments
mwilliams
Can you explain what you mean by dynamic data? If using 2.5 or above, there are page and report variables and a variables auto text that can be used in the masterpage to display the variables.
vensw
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="76156" data-time="1303397033" data-date="21 April 2011 - 07:43 AM"><p>
Can you explain what you mean by dynamic data? If using 2.5 or above, there are page and report variables and a variables auto text that can be used in the masterpage to display the variables.<br /></p></blockquote>
I'm using 2.3, and I need to display months on it. Is there any built in function for generating months in the layout. Thanks !!
mwilliams
What months? Ones between two parameters? Just all of them? Let me know.
vensw
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="76178" data-time="1303408702" data-date="21 April 2011 - 10:58 AM"><p>
What months? Ones between two parameters? Just all of them? Let me know.<br /></p></blockquote>
I need to display name of the month in a table header.
mwilliams
Your initial question is about the masterpage. If you just need the month in the table header, group your report by month and use the group header instead of the table header to display the month. That should do it.
vensw
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="76182" data-time="1303413155" data-date="21 April 2011 - 12:12 PM"><p>
Your initial question is about the masterpage. If you just need the month in the table header, group your report by month and use the group header instead of the table header to display the month. That should do it.<br /></p></blockquote>
Yeah got that. It's just out of curiosity I'm asking this, is there any built in function so that we can generate month automatically similar to page number. Thanks !!
mwilliams
The month in which you run the report? If so, you could use new Date().getMonth() to grab the numerical month from the current date. I think this is 0 based, so you'd probably have to add 1 to this. Or, you could simply drop a data element in the header and put new Date() as the expression and set the dateformat in the property editor with a format of MMMM and you'll see the current month in the full spelled out version, i.e. "April". Hope this helps.
vensw
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="76185" data-time="1303415633" data-date="21 April 2011 - 12:53 PM"><p>
The month in which you run the report? If so, you could use new Date().getMonth() to grab the numerical month from the current date. I think this is 0 based, so you'd probably have to add 1 to this. Or, you could simply drop a data element in the header and put new Date() as the expression and set the dateformat in the property editor with a format of MMMM and you'll see the current month in the full spelled out version, i.e. "April". Hope this helps.<br /></p></blockquote>
<br />
Got that. Thanks for the solution.
mwilliams
Not a problem. Glad to help. Let us know whenever you have questions!