Jump to content
We've recently updated our Privacy Statement, available here ×

NEED chart scriptlet real example for ireport 4.5.1


saradhasivaraman

Recommended Posts

Hi ,

Need chart scriptlet real time example to take up data's dynamically... the one which i referred  http://community.jaspersoft.com/questions/503439/chart-scriptlet-real-example from this site doesn't seem to work.. P

Refering from abv url..

Not able to find the API generateGraph() from the REPORT_SCRIPTLET 

((com.brainscript.yield.yieldgraph.service.YieldChartReportScriptlet)$P{REPORT_SCRIPTLET}).generateGraph()  

 

Plz help me ..

 

 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This issue has been resolved..

((com.brainscript.yield.yieldgraph.service.YieldChartReportScriptlet)$P{REPORT_SCRIPTLET}).generateGraph()  This line referred form the url http://community.jaspersoft.com/questions/503439/chart-scriptlet-real-example as such doesn't work..

1) Need to specify the class name in the scriptletclass of ireport

Example:com.brainscript.yield.yieldgraph.service.YieldChartReportScriptlet

then

2) specify the method name in the tag.

  Example :$P{REPORT_SCRIPTLET}).generateGraph(). jst specifying the method name with the reference object of the class ($P{REPORT_SCRIPTLET}))   will suffice in imageexpression ...

 

This works fine..

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...