This content has been marked as final. Show 6 replies
I'm trying to figure out how to do this also - no luck so far in the docs. All examples are for static XML. I'd gues that flex would not just support static but that's all folks in terms of examples at least as far as I can tell. Sorry Mr Beerandon, no help here...
Have you looked into DataModel and how to set it as backing bean for a Form:
I think we are in a bad neighborhood of Flex. Here's what I found from the forums so far:
"'ve been down this road before, and it isn't possible right now. It is on our list for the future as this is a much-desired feature. We are limited to what the browser environment offers. Plus we have a deep committment to maintain a high standard of security. Allowing Flash applications to read and write files directly to the user's hard drive would violate that trust. So part of our future task is to figure out how to do this in keeping with the spirit of our security efforts.
Senior Flex Product Support Engineer
Since "we're limited to what the browser environment offers" we can always use the Save As... to save content directly to the server or hard drive. I know that's brute force and not what you are looking for but it is a start. There was some discussion about Active X which I am not a fan of either. Oh Well...
I think there is difference between saving a file on the server vs. saving the same file on the user's local machine. The original poster is looking for former not the latter.
DataModel can be backed by a Form and FileReference is used to upload data to server.
Oh, I spoke too soon. We can actually send the XML to server, that would save it somewhere and let the user download the saved file.