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

cHaOs667

Members
  • Posts

    12
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by cHaOs667

  1. @fatsy: Thanks for you answers. But i think i haven't explained my problem very well. My problem is that my Mainreport should print all Values under /aaa and the subreport should print all values under /aaa/bbb but my Report only prints the Values found under the first /aaa Elements (i mean all elements found under /aaa with the id=1) and the Subreport prints all Values found in the xml file for ccc (not only those belonging to aaa with id=1, it prints ervery elements!). Here i list my problem clearer: Mainreport: Prints only the Elements found under /aaa (id=1) Subreport: Prints all ccc elements (it doesn't care of if those elements are under aaa with id=1 or id=2 but i want that the Subreport only prints the elements belonging to the id in the Mainreport.) Meinreport XPath Value: /aaa Subreport XPath Value: /aaa/bbb
  2. Hello, i have one Mainreport and one Subreport. Those two point s to one XML File which looks like: Code: <aaa id="1"> <bbb id="1"> <ccc>abc</ccc> </bbb> <bbb id="2"> <ccc>abc</ccc> </bbb> <ddd>cba</ddd> </aaa> <aaa id="2"> <bbb id="1"> <ccc>abc</ccc> </bbb> <ddd>cba</ddd> </aaa> My Mainreport ist targetting to /aaa and my Subreport to /aaa/bbb. And there is my problem, the subreports prints the values of all <ccc> fields found in the xml file and not only for the first <aaa> entry. In my opinion it should print at first the first <aaa> entry, then the fields unter <bbb> for the actual position and then the values stored in the <ddd> field. Many thanks in advance
  3. Could it be that your SubrptCount Variable is of type string and not int? If you want to look if youre sting variable is NOT empty then use: Code:new Boolean(!$F{SubrptCount}.equals(""«»))
  4. I don't know if i understand your problem correctly but have you tried the following expression? Code:new Boolean(!$V{SubrptCount}.intValue() == 0)
  5. Hello, imho youre XML file should look like this: <root> <ATOS> <Measure id="1"> <Measuring_Volume>300x300</Measuring_Volume> <Lens_Focal id="1">12mm</Lens_Focal> <Lens_Focal id="2">35mm</Lens_Focal> </Measure> <Measure id="2"> <Measuring_Volume>150x150</Measuring_Volume> <Lens_Focal id="1">23mm</Lens_Focal> <Lens_Focal id="2">65mm</Lens_Focal> </Measure> </ATOS> </root> and the datasource should point to: /root/ATOS/Measure | /root/ATOS/Measure/Lens_Focal i think this should work. Greetins Dennis
  6. Hello, here is another Problem that i have ;) I am doing at the moment an report which has many optional fields in his details band - so many fields that there is not enough space in the details band. Is there any chance to add another page in ireport or to stretch the detail band more than the page size? In the printed report there is no space problem - the lines who don't get printed are gonna get removed with the "Remove line when blank" option. I hope you can help me, this is very important! Sorry for my bad english.
  7. Finally, i fixed my problem! I seperate the different XPath expressions by an '|'
  8. I fixed my Problem with different XPath Expressions.. in the JRXML Datasource i can insert different paths separated by an '|'
  9. Hello, i've made already an entry in the iReport discussion but maybe this is the better place to discuss my problem. Heres my posting: Hello there, i have an XML file as an datasource and different XML Elements which should be repeated but it only repeats one of the elements. The XML file looks like this Code: <?xml version="1.0" encoding="ISO-8859-1"?> <TAXPDF> <HEAD> . . </HEAD> <DETAIL> <TEXTBLOCK> <LINE id="01"> <TEXT>some text</TEXT> </LINE> <LINE id="02"> <TEXT>some more text</TEXT> </LINE> <LINE id="03"> <TEXT>much more text</TEXT> </LINE> </TEXTBLOCK> <POSITIONS> <POSITION id="01"> . . </POSITION> <POSITION id="02"> . . </POSITION> </POSITIONS> </DETAIL> </TAXPDF> My Datasource is targetting at '/TAXPDF/DETAIL/TEXTBLOCK/LINE' and if i generate now my report, it only repeats the elements in the 'LINE' blocks and prints only the first 'POSITION' element and not the other ones. If i change it to '/TAXPDF/DETAIL' i can't repeat neither the 'LINE' elements nor the 'POSITION' elements. Does anyone has an idea what might be wrong? Or do i have to creat an subreport? Regards, Dennis Trabandt PS: Sorry for my english, it's not that good as it should be.
  10. Hello there, i have an XML file as an datasource and different XML Elements which should be repeated but it only repeats one of the elements. The XML file looks like this Code:<?xml version="1.0" encoding="ISO-8859-1"?> <TAXPDF> <HEAD> . . </HEAD> <DETAIL> <TEXTBLOCK> <LINE id="01"> <TEXT>some text</TEXT> </LINE> <LINE id="02"> <TEXT>some more text</TEXT> </LINE> <LINE id="03"> <TEXT>much more text</TEXT> </LINE> </TEXTBLOCK> <POSITIONS> <POSITION id="01"> . . </POSITION> <POSITION id="02"> . . </POSITION> </POSITIONS> </DETAIL> </TAXPDF> My Datasource is targetting at '/TAXPDF/DETAIL/TEXTBLOCK/LINE' and if i generate now my report, it only repeats the elements in the 'LINE' blocks and prints only the first 'POSITION' element and not the other ones. If i change it to '/TAXPDF/DETAIL' i can't repeat neither the 'LINE' elements nor the 'POSITION' elements. Does anyone has an idea what might be wrong? Or do i have to creat an subreport? Regards, Dennis Trabandt PS: Sorry for my english, it's not that good as it should be.
×
×
  • Create New...