Alex:
My goal is to receive the file on the client and open Excel.
For the moment i did;
// navigateToURL(u, "_blank");
var objDownloadFile:FileReference = new FileReference;
objDownloadFile.download(u,strFileName + ".xlsx");
which will allow the user to download the file. It would be nice to give them
the option to open it from the application.
Paul R. Stearns
Advanced Consulting Enterprises, Inc.
15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016
Voice: (305)623-0360 x107
Fax: (305)623-4588
----------------------------------------
From: Alex Harui <[email protected]>
Sent: 6/18/20 12:04 AM
To: "[email protected]" <[email protected]>, "[email protected]"
<[email protected]>
Subject: Re: migrating to AIR when using url "POST" request
At a higher-level, what is the user goal? Can you open Excel itself or does it
have to be a browser window?
-Alex
On 6/17/20, 10:53 AM, "Paul Stearns" <[email protected]> wrote:
In many places in our applications we use the navigateToURL method to load
another browser window with Excel Spreadsheets and other items we generate from
code on our website. We invariably use "POST" instead of "GET" for various
reasons, some of which cannot be converted to "GET."
Where can I find information on how to convert;
var u:URLRequest = new URLRequest(_RootDomain + urlExcelExport);
u.data = variables;
u.method = "POST";
navigateToURL(u, "_blank");
to something which will work from AIR? Perhaps URLloader?
Paul R. Stearns
Advanced Consulting Enterprises, Inc.
15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016
Voice: (305)623-0360 x107
Fax: (305)623-4588