|
|
Re: How to set text in master page header using data from report? [message #899282 is a reply to message #899279] |
Tue, 31 July 2012 10:39 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Paul Ramsden![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=paul%40ramsden.de) Messages: 84 Registered: February 2011 Location: BW, Germany |
Member |
|
|
Thanks Ricardo but this is not what I need.
I pass a seminar id to the report and a query runs to get more info about the seminar. I want to put the seminar name and its' date in the report header. The body of the report will contain different data about attendees or other seminar related data.
As the query runs in the body I'm guessing I have to update the header (master page in a library) from the body somehow.
Perhaps there is a better way....
[Updated on: Tue, 31 July 2012 10:41] Report message to a moderator
|
|
|
|
|
Re: How to set text in master page header using data from report? [message #899319 is a reply to message #899298] |
Tue, 31 July 2012 13:15 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Ricardo Rodrigues![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=caldasr18%40gmail.com) Messages: 15 Registered: July 2012 Location: Ireland |
Junior Member |
|
|
Hi
yes I think you can use a global variable
onInitialize of the report
reportContext.setPersistentGlobalVariable("title", "test global string");
and you could update it in some event after the dataset execution
reportContext.setPersistentGlobalVariable('title',dataSetRow["seminarname"] + "-" + reportContext.getPersistentGlobalVariable('title'));
or have something like an adicional logic in the data binding:
(dataSetRow["isResource"] == 1 ? "Resource requirements " + dataSetRow["seminarname"] : "Attendees by country " + dataSetRow["seminarname"])
where isResource would be a new column in your dataset identifying in which "level" are you in. or you could use a param or whatever that suits you better.
Hope this helps you
[Updated on: Tue, 31 July 2012 13:16] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03084 seconds