[ic] passing variables to usertags

Stefan Hornburg Racke interchange-users@lists.akopia.com
Fri Jul 20 14:49:00 2001


Leon Harris <leon@quoll.com> writes:

> Hi. I am having a hassle passing values to a usertag I defined in
> /usr/lib/interchange.cfg
> 
> Can anyone please tell me why this doesn't work - I am rapidly going
> bald, there are teeth marks on the monitor, the topics of reproduction,
> excretion and interchange have been mentioned frequently in the same
> sentence ..... you get the picture .... :)
> 
> ----------------------------------------------------------
> ...extract from interchange.cfg
> 
> UserTag austpost_calc HasEndTag
> 
> Usertag austpost_calc Order Height Length Width Weight Quantity
> Pickup_Postcode Destination_Postcode Country Service_Type
> 
> UserTag austpost_calc Routine <<EOF
> 
> sub {
> my ( $Height, $Length, $Width, $Weight, $Quantity, $Pickup_Postcode,
> $Destination_Postcode, $Country, $Service_Type ) = @_ ;
> 
> ::logGlobal("calling with: " . join("|", $Height, $Length, $Width,
> $Weight, $Quantity, $Pickup_Postcode, $Destination_Postcode, $Country,
> $Service_Type));
> 
> --------------------------------------------------------
> 
> I call this from an interchange page with
> 
> [austpost_calc] Height=100 Length=100 Width=100 Weight=500 Quantity=1
> Pickup_Postcode=6167 Destination_Postcode=2014 Country=US
> Service_Type=Express [/austpost_calc]

[austpost_calc Height=100 Length=100 Width=100 Weight=500 Quantity=1
Pickup_Postcode=6167 Destination_Postcode=2014 Country=US
Service_Type=Express]

and remove the HasEndTag directive.

Ciao
        Racke

-- 
Racke happily hacks Interchange and maintains Debian packages like Courier.

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)