Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsChange report title property value at runtime
https://www.eclipse.org/forums/index.php/mv/msg/393363/933588/#msg_933588
How do I dynamically change the Title propery of my report at runtime?
I use reportContext.getReportRunnable().getProperty("title"); on my master page in my library to show my report title
It's worked fine so far because all my report titles have been constants
But I have one report now where I want a parameter value included in the report name
and various other things but no success. The title shown when previewing the report is still the constant 'title' i've set on the General tab
And an unhandled exception error when viewing in browser
The following items have errors:
ReportDesign (id = 1):
+ Unhandled exception when executing script.
Thanks]]>j k2012-10-05T06:29:57-00:00Re: Change report title property value at runtime
https://www.eclipse.org/forums/index.php/mv/msg/393363/934157/#msg_934157
reportContext.getDesignHandle().setProperty("title", "mytitle");
Jason]]>Jason Weathersby2012-10-05T18:07:30-00:00Re: Change report title property value at runtime
https://www.eclipse.org/forums/index.php/mv/msg/393363/937448/#msg_937448
That mostly works. The master page picks up the correct title to display, but the menu bar of the browser still shows the initial version of the title.
Is there any way to modify that as well or does that get set prior to any code on the report being executed?
Cheers]]>j k2012-10-09T01:20:19-00:00Re: Change report title property value at runtime
https://www.eclipse.org/forums/index.php/mv/msg/393363/938271/#msg_938271
<script>
document.getElementById("mytitle").value=<VALUE_OF>reportContext.getDesignHandle().getProperty("title");</VALUE-OF>;
</script>
Jason]]>Jason Weathersby2012-10-09T18:24:03-00:00Re: Change report title property value at runtime
https://www.eclipse.org/forums/index.php/mv/msg/393363/1733263/#msg_1733263
udaya yarasi2016-05-25T20:44:43-00:00