Sure,

first we write the file.  The filename written is
"\ebay\tmp_files\<@userreference>.csv" so that it's unique.

Then the data to write is the variable described below.

Then there's a results action with the following in it:

<script language="JavaScript">

<!--

var Excel =
window.open('/ebay/tmp_files/<@userreference>.csv','Excel',config='toolbar=y
es,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');

Excel.focus();

//-->

</script>



----- Original Message -----
From: "Dan Stein" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 4:33 PM
Subject: Re: Witango-Talk: Help with file write


> Can you give me an example of the JavaScript that would open the file?
> --
> Dan Stein
> Digital Software Solutions
> 799 Evergreen Circle
> Telford PA 18969
> Land: 215-799-0192
> Mobile: 610-256-2843
> Fax 413-410-9682
> FMP, WiTango, EDI,SQL 2000
> [EMAIL PROTECTED]
> www.dss-db.com
>
>
> > From: "Dave Machin" <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Wed, 4 Dec 2002 15:04:29 -0800
> > To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]>
> > Subject: Re: Witango-Talk:  Help with file write
> >
> > We've done the same, using this in a file write action:
> >
> > <@var csv_array aprefix="" asuffix="" rprefix="" rsuffix="<@char
code=13>"
> > cprefix="" csuffix=",">
> >
> > Then use javascript to open a window pointing the the written file and
it
> > opens in Excel (in most cases, or asks them to download it).
> >
> > ----- Original Message -----
> > From: "Dan Stein" <[EMAIL PROTECTED]>
> > To: "Multiple recipients of list witango-talk"
<[EMAIL PROTECTED]>
> > Sent: Wednesday, December 04, 2002 2:06 PM
> > Subject: Witango-Talk: Help with file write
> >
> >
> >> I am attempting to write an array to disk as a . CSV file.
> >>
> >> The array is user$PDE
> >>
> >> What syntax do I put in the write action to get the proper formatting
of
> > the
> >> array so it will write out as a CSV file
> >>
> >> I want the user to be able to open this file with excel.
> >> WiTango 4.5 windows 2000
> >> --
> >> Dan Stein
> >> Digital Software Solutions
> >> 799 Evergreen Circle
> >> Telford PA 18969
> >> Land: 215-799-0192
> >> Mobile: 610-256-2843
> >> Fax 413-410-9682
> >> FMP, WiTango, EDI,SQL 2000
> >> [EMAIL PROTECTED]
> >> www.dss-db.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
> >
>
> ________________________________________________________________________
> 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

Reply via email to