|
|
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 |
Paul Ramsden 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 |
Ricardo Rodrigues 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.03275 seconds