I have a pretty basic understanding of actionscript and how to write a little bit of code with it, but I’m struggling on how to attack this problem.
We have a application that runs a bunch of BIRT reports. They are currently stored in a reports/ folder. Lately we’ve been getting more and more and we need to refactor these into subfolders for the various departments.
Reports/
Campus 1/
Budget Office/
report1.rptdesign
report2.rptdesign
Human Resources/
Campus 2
Campus 3
How can I get a path name to a specific report if I know the report name and that it is somewhere within the reports/* directory?
For example if the user selected report2.rptdesign, how can I get back the path “reports/campus1/budget office/”?
A url of an example or sample code to at least get me going in the right direction would be a huge help, thanks!
I did find this Flex, AIR: Search for .pdf files in specified folder, not sure if that what I need though.
Rather then having recursive search in java, try increasing a filed in DB. This approach will be better.You will be calling the service from flex to get the reports from server which will return you a Collection some what like this sample.
this will save one call to sever on user interaction.