I already have working code that uses HttpService to send various requests to the backend from my Flex client and process the responses.
I also have a customized implementation of the flex DataGrid which implements paging such that the flex client only shows one page of data at a time. The customized control has buttons to issue page forward/backward requests to the backend to get a different page of data. These requests are sent to the backend with HttpService. I have a requirement to save all pages in CSV format on the clients desktop. Prior to flex we had an HTML/Javascript implementation of tables which had the same sort of feature - in that version, the backend would retrieve all of the data, format into csv, and change the content-type on the HTTP response header to "text/csv" and then setting the content-disposition to "attachment, filename=file.csv". The net result was that the browser itself would take care of displaying a dialog that says something like "Do you want to open or save this file?" I haven't been able to get the same sort of behavior to work with a request generated by the Flash Player. I have my code in the backend modify the HTTP headers in the response to my flex export-to-csv request, but the browser neers displays its open/save dialog - the response always gets directed back to the flash player. Is there a way to make this work? Thanks, Glenn

