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)
Dynamic Datasource
new member
Hi Micheal,
How can configure DataSource Dynamically from the web server for csv?
Thank you in advance.
Find more posts tagged with
Comments
mwilliams
Does the file location stay the same?
If so, in the dataSet beforeOpen script, you can change the "queryText" to point at the new file in the same directory by switching out the file name. You can see the format of the "queryText" for a flat file dataSet in the XML Source of your report design.
If the location can vary, you'll have to change the path to the file in the dataSource as well. To do that, take a look at this devShare post:
http://www.birt-exchange.org/org/devshare/designing-birt-reports/951-dynamically-changing-the-pathhome-for-a-flat-file-datasource/
Hope this helps.
new member
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="75767" data-time="1302556326" data-date="11 April 2011 - 02:12 PM"><p>
Does the file location stay the same?<br />
<br />
If so, in the dataSet beforeOpen script, you can change the "queryText" to point at the new file in the same directory by switching out the file name. You can see the format of the "queryText" for a flat file dataSet in the XML Source of your report design.<br />
<br />
If the location can vary, you'll have to change the path to the file in the dataSource as well. To do that, take a look at this devShare post:<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/951-dynamically-changing-the-pathhome-for-a-flat-file-datasource/'>http://www.birt-exchange.org/org/devshare/designing-birt-reports/951-dynamically-changing-the-pathhome-for-a-flat-file-datasource/</a><br
/>
<br />
Hope this helps.<br /></p></blockquote>
<br />
Thanks a lot Micheal<br />
<br />
This is what I am looking for.<br />
<br />
Thank you