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

XML-Datasource PLZ HELP!!!


gombs

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...