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

singh758

Recommended Posts

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

Create variable $V{ROW_SUM} and define variable expression for it as $F{ABC}+$F{EFG} and Calculation = 'Nothing'

See example test report (JR 4.1.2)

<?xml version="1.0" encoding="UTF-8"?>						select 200 ABC, 0 EFG FROM DUALUNION ALL SELECT 500, 300 FROM DUALUNIoN ALL SELECT 700, 200 FROM DUAL						$F{ABC}				$F{EFG}				$F{ABC}+$F{EFG}																															ABC																		EFG																		ROW_SUM																																																									$F{ABC}																																																			$F{EFG}																																																			$V{ROW_SUM}																																																																	$V{ABC_SUM}																																																			$V{EFG_SUM}																																																			$V{ROW_SUM}						[/code]
Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...

Nobody can't help you without information about problem. "but it is showing me null" - it is not enough to determine the error. Create new answer with description of problem. SHOW YOUR JRXML, define database (is it Oracle? Postgress, MSSQL? or is it JRBeanCollectionDataSource?...). Show version iReport (JasperServer?)

After that you get a chance to get answer

Link to comment
Share on other sites

  • 1 month later...

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