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

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


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>


everything seems to work fine

The page that I'm trying to download has....

[calc]
 if($CGI->{customer}) {
  $CGI->{item_id} = $CGI->{customer};
 }
 if(! $CGI->{item_id} and $Session->{arg}) {
  $CGI->{item_id} = $CGI->{customer} = $Session->{arg};
 }
return;
[/calc]

[update values]
[loop list="[value-extended customer]"]

BEGIN:VCARD
VERSION:2.1
N:[loop-data catalogreq lastname];[loop-data catalogreq firstname]
FN: [loop-data catalogreq contact]
ORG; [loop-data catalogreq institut]
TITLE; [loop-data catalogreq title]
NOTE; ENCODING=QUOTED PRINTABLE: [loop-data catalogreq notes]=0D=0A
TEL;WORK;VOICE: [loop-data catalogreq phone1]
TEL;WORK;FAX: [loop-data catalogreq fax]
ADR;WORK:;;[loop-data catalogreq address1];[loop-data catalogreq
city];[loop-data catalogreq state] [loop-data catalogreq zip];;[loop-data
catalogreq country]
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:[loop-data catalogreq
address1]=0D=0A[loop-data catalogreq city], [loop-data catalogreq state]
[loop-data catalogreq zip]=0D=0A[loop-data country]
URL:<LINK TYPE='GENERIC" VALUE="HTTP://[loop-data catalogreq
website]">HTTP://[loop-data catalogreq website]</LINK>
EMAIL; PREF; INTERNET:[loop-data catalogreq email]
REV;VALUE DATE]
END:VCARD

[/loop]

Is what I want to happen is the user clicks on the "download vcard file" and
the vcard is downloaded with all the user information it. I believe that
this is a much faster way of transfer user information then the marketing
department would be able to email from the client app.

The output that I'm getting is [loop-data catreq...] in the fields. Obviosly
the data isn't getting filed in before download. Any Info would help

THX N ADV.
J. Scott Andreas :) 
IS/Programmer/WebDevelopement 
Learning Services, Inc. 
e-mail: sandreas@learningservicesinc.com 
phone: 1-800-877-9378 ext. 146 
fax: (541) 744-2056 
      ---    __o 
     ---   _-\<,_ 
      --- (_)/ (_)