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

rifraser

Members
  • Posts

    1
  • Joined

  • Last visited

rifraser's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I have a requirement to process two or more datasets, with the results being a combination of the records and fields. Consider the following bill-of-material, which is extracted from the data warehouse using Oracles 'CONNECT BY' select statement. RownumLevelParentChildQuantity11Part 1Part 2122Part 2Part 3133Part 3Part 4244Part 4Part 7251Part 1Part 5162Part 5Part 61The processing I need to do is: - If you find a level 2 part of a particular name, report the next part at level 4 ( you do not know know how many level 3 parts will be below the level 2 part) - If you find Part 2 in the dataset, report the item of a particular type two levels below (Part 2 can be anywhere in the heriarchy) The Rownum field can be used to iterate over SQL returned results. How, within a java or scriptlet class, can you get all the returned records, iterate according to lots of rules that involve forward- and backward- referencing relative to a row, and output so that the iReport designer just works with one or more rows of data? As a further challenge, I could have mulitple output datasets from multiple sub reports, and the processing occurs across all the data sets. ie: If you find Part 1 in dataset 1, report all level 2 parts in data set 2; else report only level 1 data in the third data set. Note: I cannot query directly on the data ware house using java or similar, as only the iReport 'Report Datasource' is provided by the central IT resources; I just use it within iReport. The above problem is simple if I could directly access, via JDBC within Java, the data warehouse. I must use iReport and JasperServer as this is the corporate standard. If I was using BIRT, then I would use the beforeOpen, beforeClose, onFetch, open and fetch scripts to process the data JasperServer provides the ideal way to utilize other formats (PDF, XLS...) rather than hand code. Thanks in advance
×
×
  • Create New...