nitin403 Posted September 10, 2007 Share Posted September 10, 2007 Hi! to all.I need get total of amount in a node.Below is an sample of my xml datasource.Code:<A><B Amount="20" /><B Amount="20" /><B Amount="20" /><B Amount="20" /><B Amount="20" /><B Amount="20" /> <B Amount="20" /> <B Amount="20" /></A> My Query string is /A I want to take /A/B as An Object and get the summation of /B/@Amount attribute.How can I do this.I use iReport. Thanks for your help in advance. Link to comment Share on other sites More sharing options...
nitin403 Posted September 11, 2007 Author Share Posted September 11, 2007 I found the solution to it. I just need to create a field.And in field discription type sum(A/B//@amount) and:woohoo: it works 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