![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
jjacob_1
-
Posts
2 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by jjacob_1
-
-
I'm using xpath to build a report which I'm sure is easier with SQL but for the sake of not having to redesign the whole report from scratch, is it possible to retrieve $F{descrption}, store it into an array or hash or something similar in ireport, then after processing all of the fields, then printing out the totals?
Here is an example, say you have the following listed descrptions (the numbers are amount):
2 Laptop
1 Laptop
3 Cables
4 Monitors
When it goes through this list I would like it to print out:
3 Laptop
3 Cables
4 Monitors
By perhaps taking list one, storing it into an array/hash and then retreving the list for use later?
Sorry if it's not explained well, its early. Lemme know if I need to try and explain it better.
Possible to use xpath2 & sql in same report?
in Products
Posted
I've got a report functioning with SQL but there are a couple of pieces of data which are not located in the SQL database, for some reason. They are however available via xpath2- but the xpath data does not feature some pieces of data which ARE in the SQL database.
So I was wondering if it is at all possible to add a datasource that just pulls one or two items from an xpath2 source?