views:

286

answers:

3

I am sorry to bother you but I am facing a very inconviniet problem ...

I have been browsing around your many sites about BIRT and specially for Interactivity or scripting related subjects.

But (it would be sooo nice to live in a flawless world) trying to perform some examples (like this one http://kickjava.com/src/org/eclipse/birt/chart/examples/api/interactivity/InteractivityCharts.java.htm) which is supposed to make interactive charts I get nothing ... well yes I get something : charts (very nice ones by the way ;p) but I have searched for the interactivity aaaaaand it's gone ... may be to the swimming pool or at the laundry but certainely not there ... If you want I can send you the code I used to display the charts or anything you'd like but I really need to make my charts interactives and feel quite helpless and distraught (I'd prefer dazed and confused ...). Please help me I really don't know what to do, I have tried almost anything and been copying and recopying this code times and times to find where the trouble is...

(And because a Star Wars reference is a cliché in gerk conversation) You are my last hope ! ;p

+2  A: 

The easiest path to interactivity for BIRT-based content is the Interactive Viewer. Have a look at the specs here: http://www.birt-exchange.com/be/products/birt-report-viewers/actuate-interactive-viewer/features/

MystikSpiral
Thank you for the link but I need specifically to render my charts as SWT component for an Eclipse RCP app'.But thank you for the link !
Ar3s
A: 

Im having the same problem. I used statements such as:

cwaBar.getInteractivity( ).setLegendBehavior( LegendBehaviorType.HIGHLIGHT_SERIE_LITERAL ); bs.getTriggers( ).add( TriggerImpl.create( TriggerCondition.ONMOUSEOVER_LITERAL, ActionImpl.create( ActionType.HIGHLIGHT_LITERAL, SeriesValueImpl.create( String.valueOf( bs.getSeriesIdentifier())))));

but they dont seem to yield any results. All help greatly appreciated.

thomas
sorry to answer this late but I am pretty interested in your case ,How do you render your chart ?Does your class implements IUpdateNotifier or ICallBackNotifier ?Did you set your Device Renderer's UPDATE_NOTIFIER propertie ? Can you send more code ? Do you want some snippets of mine ?Hope I'll be able to help you !
Ar3s
+1  A: 

right after declaring your IDeviceRenderer you must idr.setProperty( IDeviceRenderer.UPDATE_NOTIFIER, anyclass that implements IUpdateNotifier );

Then you have plenty of documentations on http://www.birt-exchange.org/documentation/BIRT_220/ChartJavadoc/chart/api/org/eclipse/birt/chart/device/IUpdateNotifier.html

And forever Google is your friend ^^

Ar3s
It is ugly to accept my own answer to my own question but that is the best answer I found to solve my problem :s
Ar3s