|
Re: Accessing Report Context from Chart Interactivity JavaScript [message #692913 is a reply to message #692314] |
Tue, 05 July 2011 13:11 |
|
The reportcontext is available in server side scripting. The chart
interactivity is client side scripting and has no access to the report
context. You can work around this by creating js arrays in a script tag
inside a text element and using the invoke script client interactivity
function in the chart. Take a look at the attached example. A hidden
table loads up a js array that is used in a text element script tag.
The chart calls this client side function.
Jason
On 7/4/2011 4:07 AM, forums-noreply@eclipse.org wrote:
> This has been bugging me for a few days now, and I thought someone here
> may have an answer. In my project, there is a chart with a mouseOver
> event listener that displays an extended, formatted value in a tooltip
> when the user hovers over the point on the graph.
> So far so good, but the tooltip will occasionally truncate the text when
> it is too long, so I thought I will write a small JavaScript in the
> mouseClick event listener that will look up the required value from a
> global persistent variable that I defined elsewhere in the script.
> However, it turns out that the chart interactivity javascript cannot
> access the reportContext object! The only objects being passed to it are
> the event, dataValue and categoryValue. Anyone has a helpful suggestion
> on how to get the reference to the reportContext in the interactivity
> script?
|
|
|
Powered by
FUDForum. Page generated in 0.03198 seconds