Now you can return value from from the dataset of a table to the main report.
On jasper studio 6.0.1,I
found a property named dataset of table, it has return values set. But get into the set , I found the form "configure the return values" is wrong, jasper studio get wrong with "from variable to variable" , stuio reverse the two variable. "from variable" is table's local variable, "to value" is main report variable.You must manaualedit in source , and remove "incrementerFactoryClass=""".
I test ,it is ok .The return value is printed on main report.
next is a piece of my jrxml.
<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<datasetRun subDataset="workscore" uuid="307278bc-db98-4de2-9b50-dea5dc69b496">
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<returnValue fromVariable="returnscore" toVariable="workscore"/>
</datasetRun>