dias_95_95 Posted August 27, 2019 Share Posted August 27, 2019 Im newbie in JasperSoft. I have problem retrieving data with same tag (field) name. My xml have the name field "ChargeIssuerOrgNameRu" repeatly used.I can only able to get the first "ChargeIssuerOrgNameRu" data,Any help will be highly appreciated.Thanksjrxml : <textFieldExpression><!CDATA[($F{RegChargeIssuerOrgName}==null?"":$F{RegChargeIssuerOrgName}+",<br/>")]]></textFieldExpression>xml :<RegCharges><EntryDate>2014-04-28+06:00</EntryDate><ChargeIssuerOrgNameRu>first article</ChargeIssuerOrgNameRu></RegCharges><RegCharges><EntryDate>2014-05-04+06:00</EntryDate><ChargeIssuerOrgNameRu>Second article</ChargeIssuerOrgNameRu></RegCharges>And yeah, I am not getting why the jrxml named "RegChargeIssuerOrgName" instead of "ChargeIssuerOrgNameRu" (the project is not mine) Link to comment Share on other sites More sharing options...
swood_1 Posted August 30, 2019 Share Posted August 30, 2019 The answer is all in the expressions (XPATH) that you use to select the "rows" in the data and the fields within those rows.See http://jasperreports.sourceforge.net/sample.reference/xmldatasource/index.html#xmldatasource Link to comment Share on other sites More sharing options...
dias_95_95 Posted September 2, 2019 Author Share Posted September 2, 2019 Thank you so much swood_1. I used subreport and it worked Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now