如何使用XML DataSource在Eclipse Birt中的数据集中添加子数据集?

时间:2017-04-19 13:27:46

标签: birt

我想生成一份报告,其中包含主报告中的报告。

示例:

<MainAttachments>
<Attachment>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
</Attachment>
<Attachment>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
</Attachment>
<Attachment>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
   <Invoice>
      <ID>...</ID>
      <Usage>...</Usage>
   </Invoice>
</Attachment>
</MainAttachments>

当我在单个DataSet下配置所有数据时,我将只获得单行输出。

请帮助如何配置DataSet以获取每个附件下的所有发票报告?

1 个答案:

答案 0 :(得分:0)

@Hemalatha

主(客户) - 订单(订单)报告

[1]: https://www.ibm.com/support/knowledgecenter/en/SSBSK5_7.5.2/org.eclipse.birt.doc/birt/birt-13-2.html

我相信您会在上面分享的文档链接中回答您的疑问。