[ic] $Tag->data in a UserTag

Grant emailgrant at gmail.com
Mon Jul 31 00:46:32 EDT 2006


> Try:
>
> my $new_var = $::Tag->data( { table => 'mytable', field => 'myfield',
> key => $key } );
>
> Note the double colon in $::Tag->...

That's actually not working either.  If I hard-code the key value like
the rest of the parameters it works, but not if I try to use a
$variable.

- Grant


> On 12:05:53 pm 07/31/06 Grant  wrote:I'm having trouble getting the
> data tag to work inside a usertag when
> I specify one of the tag's fields with a $variable.  I've tried both
> of these:
>
> my $new_variable = $Tag->data({table => 'table_name', field =>
> 'field_name', key => $variable});
>
> my $new_variable = tag_data('table_name', 'field_name', $variable);
>
> and I've fiddled with ',",q{}, and qq{} quite a bit too.  Does anyone
> know how to make this work?
>
> - Grant


More information about the interchange-users mailing list