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

iReport line chart can not display value returned from subreport


jtsai

Recommended Posts

I put a subreport at "Detail1" section, and also display 3 return values (RTN1, RTN2, RTN3) at "
Detail1" (with Evaluation time="Band"). It seems showing all RTN1~3 value at every row just fine.

But when I put a "Line Chart" at "Summery" section to show those RTN1,RTN2,RTN3 data, it allway shows empty at the chart.

Could anyone tall me why & how??

Thanks

J.T.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...

Can you explain how you're did it?

RTNX variable is master report from? And it mapped via "Return Value" to subreport variable? Just in my case, i see mapped variable value on master report only when I place it as Text field, but not in Chart. When I select this variable in Chart and try to run report, it's fail with "Category series name is null". I've select Chart properties "Evaluation time" = Band and master (mapped) variables Calculation = System

Link to comment
Share on other sites

Hi Alex,

In my case, the "Detail_1 section" of master report need to receive 3 return variables from a sub_report. And then show these values on "Line Chart" at "Summary section" of master report.

My original problem is that the return variables(RTN1,RTN2,RTN3)show data correctly at Detail_1 section. But the "Line Chart" show nothing at Summary section.

Finally, it works.

Two properties of RTNx need to be set as:

1. Evaluation Time : Band

2. Text Field Expression : $V{RTN1}

 

Link to comment
Share on other sites

fail with "Category series name is null"

This error show up when something wrong with Chart definition. Make sure you put the "values" not "variables" at the definitions.

e.g. (of my case)

1. Series expression: "Category1"

2. Category expression: $V{MMDD}

3. Value expression: $V{RTN1}

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...