Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
help in design scenarios , questions
yuvyon
Hi guys<br />
I am new to Birt <br />
I am evaluating Birt for use with our local search engine application.<br />
I need some guidance to see if i am on the right track. and can use birt for <br />
the report generation(actually i already picked it up ).<br />
secanario:<br />
- Csv or XML file is generated uppon web service request with statistic data. <br />
- File is sorted and filtered (group by)<br />
- webservice only returns path to file.<br />
- for each report the number of fields (group by filtering) may change. <br />
- may need to pass params to webservice requests <br />
- time frame (from too) mandatory <br />
- and at least one breaking level (for example state ,city)<br />
- a top entry param for exampple numof clicks , so i can get all entries surpassed that value<br />
<br />
After playing with Eclipse Birt report designer 2.5.0 for a while <br />
in birt terms:<br />
<br />
my Data Sources may be <br />
1) the webservice but it only returns a path to file (csv) and no data <br />
<br />
my Data Set<br />
2) the csv /xml file<br />
but it's dynamic and changing <br />
<br />
3) i need to construct the report from changing data (number of columns and their names and changing breaking level (group by)<br />
<br />
i want to use the birt viewer (with tomcat) for showing the outcome <br />
<br />
i may need to have collapsing fields in the output (html) according to groups by levels (can it be done?).<br />
and since my data source is actually a file and it may be big (not too much) paging is needed (is that possible with a file data source).<br />
<br />
<br />
any ideas ;-)<br />
<br />
appriciate any input.<br />
Thanks in advance<br />
<br />
Yuval<br />
<br />
<a href='mailto:' title='E-mail Link' class='bbc_email'>yonyuv@yahoo.com</a>
Find more posts tagged with
Comments
Virgil Dodson
Hi Yuval,
What questions do you have? If you're asking if BIRT can work in this scenario then the answer is yes. One thing you may have to work around is around the datasource. If your webservice was returning some XML then you can use BIRT web service data source. Otherwise, since you are returning the location of a file (CSV or XML) then you will need to use the Flat File or XML data source... and then use the property binding of the data set to determine the location of the file using an expression. In this expression, in Java or JavaScript, you can initiate your web service your self, passing parameters, and set the location of the file.
As for grouping and paging, BIRT can do that just fine with dynamic data using the table group settings. As for collapsing fields in the output, the open source viewer does not support that, but a commercial viewer (Actuate Interactive Viewer) supports this.
yuvyon
Hi Virgil,<br />
<br />
Thank you very much for answering.<br />
I figured I’ll need to do something like that in order to work around the way our web service works (returning a path to file and not an xml with data).<br />
<br />
As I said I already picked BIRT as the tool for our project reports<br />
Now I am trying to figure out (for a flow I have in mind) what I need to do and if it can be done using the BIRT tools alone or do I need to add some extra functionally for example writing and using a web application or some plain java code (for integrating the functionality needed for the flow). <br />
<br />
It goes like these :<br />
I need to set a flow where user using a browser go to a URL <br />
and get a first or combined parameters screen (a List Box with reports type ) where he choose a report type<br />
<br />
for each report user chooses (pointing to a different rptdesign file) he would have <br />
a parameters screen where he can choose time frame and group by fields (list box with pre define/generated data, and maybe free text fields ). <br />
<br />
These parameters are to be sent to the web service which create the CSV file (My DATA Source) and return a path to where the file was saved (My DATA SET)<br />
The CSV data should parsed and present to the user as chart/s and/or table/s depending on the report chosen.<br />
<br />
Assumptions:<br />
I am using the free viewer (for now, already suggested we will buy the more advanced one) as my web application and entry point for the reports flow (running on a dedicated tomcat server).<br />
For each report I will have data I can used as parameters extracted from search engine or something like that .<br />
<br />
This flow in mind I have few questions<br />
1)parameters screen – can I use the designer parameters screen for such an activity or do I need to write maybe a dedicated jsp using the Birt tags .<br />
Do I have some built in support for such a flow ,meaning is there a simple way of doing it using birt functionality or do I write it from scratch ?<br />
2)I need reusability for example for all reports it’s the same web service call, can it be separate so it can be reused I am guessing a java class that will be called for each of the reports?<br />
3)when using the Eclipse designer with CSV file (flat file source) I had to pick the file manually from the folder can I do that programmatically I do not want the user to have to choose the file (data set).<br />
<br />
I am looking for examples for similar stuff done with birt and also saw few webinars( you have done ;-)) especially these regarding integrating Birt and using DE API , but cannot find the examples mentioned in these webinar .<br />
<br />
And :-( when trying the DE code from the site the hello world rptdesign file creation I am failing <a class='bbc_url' href='
http://www.birt-exchange.org/forum/designing-birt-reports/16036-runtime-exception-birt-de-hello-world-example-post51184.html'>http://www.birt-exchange.org/forum/designing-birt-reports/16036-runtime-exception-birt-de-hello-world-example-post51184.html</a><br
/>
<br />
If you think I am off the track or my flow is not logical or I am missing something and this cannot be done using the Birt tool please advise.<br />
<br />
Thanks again for your time and help.<br />
<br />
Regards <br />
Yuval<br />
<br />
<a href='mailto:' title='E-mail Link' class='bbc_email'>yuvyon@yahoo.com</a><br />
<br />
Thanks in Advance<br />
Yuval<br />
<br />
Yuval yonayov<br />
<a href='mailto:' title='E-mail Link' class='bbc_email'>yuvalyo@amdocs.com</a><br />
office: +(972) 9 77 61932<br />
internal:2979-61932 (Raanana)
Virgil Dodson
Hi Yuval,<br />
<br />
Most of what you want to do can be done without lots of custom code or getting into the DEAPI. Parameters, Scripting and Expressions should work without programatically designing each report.<br />
<br />
To answer your questions:<br />
>1)parameters screen ? can I use the designer parameters screen for such an activity or do I need to write maybe a dedicated jsp using the Birt tags. Do I have some built in support for such a flow ,meaning is there a simple way of doing it using birt functionality or do I write it from scratch ?<br />
<br />
A custom JSP page is likely needed to present a list of reports to the user... You could make this a BIRT report too... that called another BIRT report by URL.<br />
<br />
<br />
>2)I need reusability for example for all reports it?s the same web service call, can it be separate so it can be reused I am guessing a java class that will be called for each of the reports?<br />
<br />
Your web service can be called with an input parameter... but you will definately need a Java class in between since you want to use the Flat file data source.<br />
<br />
>3)when using the Eclipse designer with CSV file (flat file source) I had to pick the file manually from the folder can I do that programmatically I do not want the user to have to choose the file (data set).<br />
<br />
The name of the file can be dynamic using the Property binding (see example at <a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/949-switch-text-datasource-at-runtime/#description'>Switch
Text DataSource at runtime - Designs & Code - BIRT Exchange</a>)<br />
<br />
By the way, the DEAPI examples from Jason's webinar are located at <br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/409-deapi-examples-from-birt-exchange-webinar/#description'>DEAPI
examples from BIRT-Exchange Webinar - Designs & Code - BIRT Exchange</a>