gombs Posted January 30, 2007 Share Posted January 30, 2007 Heya! I have a big problem.I wanted to have a Datasource like this: <root><ATOS> <Measuring_Volume>300x300</Measuring_Volume> <Lens_Focal>12mm</Lens_Focal> <Lens_Focal>35mm</Lens_Focal> <Measuring_Volume>150x150</Measuring_Volume> <Lens_Focal>23mm</Lens_Focal> <Lens_Focal>65mm</Lens_Focal></ATOS></root> All of this should be displayed on ONE Page in a report. But with my XPath expressions it doesn't works. Is it possible without a subreport? In my XML-File I have many of this cases I it would be to many of subreports. Link to comment Share on other sites More sharing options...
cHaOs667 Posted January 30, 2007 Share Posted January 30, 2007 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. GreetinsDennis Link to comment Share on other sites More sharing options...
gombs Posted January 30, 2007 Author Share Posted January 30, 2007 thank you very much, but on question is open: I wanted a Description for some fields and it's requiered that this was an expression in one textfield like this: "Blablabla"+$F{Lens_Focal} But what for a "print when expression" I must set, it's not enough to set the option because this field will never null because of static text. I search for a expression. This don't works: new Boolean( $F{Lens_Focal}!=null ) There are linis displayed only with "Blablablabla". Link to comment Share on other sites More sharing options...
walmillard Posted January 31, 2007 Share Posted January 31, 2007 Create a new Variable, Print_lens. Give it a value of $F{Lens_Focal} in the 'Print when' use the variable instead of the Field... new Boolean($V{Print_lens} != null) luckwalmillard 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