[ic] downloading a file that has values passed to it

Andreas, Scott interchange-users@interchange.redhat.com
Tue Oct 23 18:59:01 2001


Rene

It works


YOU Rock

IOU a beer :)

Many thanks

-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of Rene
Hertell
Sent: Tuesday, October 23, 2001 1:20 PM
To: interchange-users@interchange.redhat.com
Subject: RE: [ic] downloading a file that has values passed to it


> Here is what I'm trying to do....
>
> >From behind the UI I've added a link on the customer_view page the
> properties are
>
> [calc]
> $Scratch->{mv_deliver} .= 'backup/vcard.vcf';
>  return;
> [/calc]
>
> with
>
> [page href="ui/backup/vcard.vcf"
>  form="
>   customer=[cgi customer]
>   mv_data_file=backup/vcard.vcf
>   mv_todo=deliver"
>
> ]Download vcard file</a>
[snip]

Hi Andreas,

If I understood you correct, you want that the vcard should be downloaded.
This is what I think is the easiest way:

1) Create a vard.vcf.html page (with this wired extension) and place it in
pages/admin under your catalog page.
2) Add this line to the top of that file: [tag op=header
interpolate=1]Content-Type: text/plain[/tag]
3) create your vcard-layout there
4) make your link to that page mentioned in 1)

My link looks like this:

[set mv_add_dot_html]0[/set]
 [page test/vcard.vcf]Get this vcard[/page]
[set mv_add_dot_html]1[/set]



That's it. You can try it yourself at
http://www.nettitarjous.net/index.cgi/test/vcard_test



René


_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users