Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
XML Datasource based on query result
keerthink
<p>Hi,</p>
<p> </p>
<p>Do you have any documentation on how to link a <em>file generated from database as XML file using a query</em> to the Birt DataSource?</p>
<p>The name of the XML file will be different dependent on a unique id for each query. </p>
<p> </p>
<p>Also, any information on applying Report Parameters to filter rows for a report using XML Datasource will be highly appreciated.</p>
<p> </p>
<p>Thanks for any help.</p>
Find more posts tagged with
Comments
Clement Wong
<p><em>To answer your first question...</em></p>
<p>It is possible to execute a query to the database in the beforeFactory event. Look at this detailed example in Matthew's reply @ <a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/topic/35930-running-a-query-in-the-initalize/?p=133369'>http://developer.actuate.com/community/forum/index.php?/topic/35930-running-a-query-in-the-initalize/?p=133369</a></p>
;
<p> </p>
<p>After you execute the query, your result will be the filename (string) and then you can set the name of the XML file to XML Data Source in the beforeFactory, or via the Property Binding of the XML Data Source.</p>
<p> </p>
<p><em>As for the second question...</em></p>
<p>In the XML Data Set's "Edit Data Set" dialog box, you should have the ability to add a Filter condition. The option should be on the left hand side of the dialog between "Parameters" and "Property Binding".</p>