Marc, There is an alternative to the file action method already mentioned, but it has a few quirks. It is effective however, and allows immediate downloading to the user's system without having to click an extra link.
This can be done by manipulating the result set as interpreted by the web server through a simple httpHeader assignment to any MIME type that isn't traditionally readable by a browser like Content-type: application/simpletext or application/notepad or something along those lines. Setup a new TAF file and put whatever argument verification you need. When you're ready do the following: - Grab a results or assignment action and enter something like: <@ASSIGN NAME="httpHeader" SCOPE="local" VALUE="Content-Type: application/<some application><@CHAR 13><@CHAR 10><@CHAR 13><@CHAR 10>"><@ASSIGN NAME="encodeResults" SCOPE="local" VALUE="false"> - Grab a DirectDBMS action and enter your query: - Grab another results action and establish your document formating: ex. <@VAR NAME='resultSet' APrefix='' ASuffix='' RPrefix='' RSuffix=' ' CPrefix='' CSuffix='' ENCODING='NONE'> By putting a link or form submission that requests this TAF file from the server the user will be notified that a document of an "unknown" type is being accessed and will ask them what to do with it when they click or submit it. Keep in mind that this can present serious security issues in an unprotected network. One other quirk is that the resulting file will always take on the full filename of the TAF file. I haven't been successful in changing that yet. Unless you really want this particular UE I would very much advise using the File Action method. This way you can execute packaging, compression, and even the inclusion of promotion or other advertising materials in the file that the user eventually downloads. The smaller the file the better though. Cheers, Jim On 5/14/02 6:30 AM, "Marc Leblanc" <[EMAIL PROTECTED]> wrote: > Hi all, > I would like to know if it was possible to export the data from a lookup > action to a text file from a user intervention. > > Let's say a user sees his order on the screen then by the click of a button > would be able to save it in a text format. > > Is that possible at all? > > thanks > > Marc Leblanc > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
