Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » master with two sibling details from an XML data source
master with two sibling details from an XML data source [message #990330] Tue, 11 December 2012 16:45 Go to previous message
Levent Aksu is currently offline Levent Aksu
Messages: 2
Registered: December 2012
Junior Member
Hi,
I am new to BIRT and cannot figure out how to cook a specific kind of report.
My data source is an XML file similar to the following:
<masters>
    <master id="1" name="A">
        <details>
            <detail id="100" desc="abc"/>
            <detail id="101" desc="def"/>
            <detail id="102" desc="ghi"/>
        </details>
        <otherdetails>
            <otherdetail id="1001" description="qwert"/>
            <otherdetail id="1002" description="asdfg"/>
        </otherdetails>
    </master>
    <master id="2" name="B">
        <details>
            <detail id="200" desc="jkl"/>
            <detail id="201" desc="mno"/>
        </details>
        <otherdetails>
            <otherdetail id="2001" description="wert"/>
            <otherdetail id="2002" description="sdfg"/>
            <otherdetail id="2003" description="xcvb"/>
            <otherdetail id="2004" description="xcvb"/>
        </otherdetails>
    </master>
</masters>


From that data source I need to draw a parallel report:

Masters
-------
1 A
    Details
    -------
    100 abc
    101 def
    102 ghi
    Other Details
    -------------
    1001 qwert
    1002 asdfg

2 B
    Details
    -------
    200 jkl
    201 mno
    Other Details
    -------------
    2001 wert
    2002 sdfg
    2003 xcvb
    2004 xcvb


That is two sibling "detail"s tied to one "master".
I tried to create 3 different data sets and connect them through data set parameters but I have not been able to define a filter based on a parameter in an XML dataset.
Possibly, my approach is not correct.
What would you suggest?
Thanks.
 
Read Message
Read Message
Read Message icon14.gif
Read Message
Previous Topic:Data type characteristics
Next Topic:Problem with LDAP data
Goto Forum:
  


Current Time: Mon May 20 21:04:29 EDT 2013

Powered by FUDForum. Page generated in 0.02534 seconds