List with files in directory
Hi all,
I have not so big experience with BIRT, but I am using it for some of my projects.
Now I need to read in report some files in specified directory. I need to display a table with list of the file names which are in the directory.
Does anyone have idea how to do this? Which type of Data Set connection I should use and how to configure it?
Thanks in advance!
Georgi
Comments
-
There is a Flat File data source. However, it expects the file to contain rows of comma-separated values (or other standard separators). If the data in the file is not delimitted in a standard way, you will need to use a Scripted Data Source. You will need a Scripted Data Source to get the list of file names as well.
Create a new Scripted Data Source. Create a new Data Set using the Data Source. In the beforeOpen event of the Data Set, add:
importPackage(Packages.java.io);
Then use the java file reader, buffered reader, etc.
Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 107 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 119 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management