iReport line chart can not display value returned from subreport

0

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.

jtsai's picture
4
Joined: Jun 4 2012 - 4:38am
Last seen: 7 years 8 months ago
It works. Since I put $V{RTN1} at property "Variable Expression" of the variable RTN1. And also variable RTN2, RTN3. Thanks J.T.
jtsai - 8 years 10 months ago

1 Answer:

0
It works. Since I put $V{RTN1} at property "Variable Expression" of the variable RTN1. And also variable RTN2, RTN3. Thanks J.T.
jtsai's picture
4
Joined: Jun 4 2012 - 4:38am
Last seen: 7 years 8 months ago

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

Alex-R - 8 years 8 months ago

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}

jtsai - 8 years 8 months ago

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}

jtsai - 8 years 8 months ago
Feedback
randomness