[ic] data tag in UserTag

Grant listbox at email.com
Wed Nov 5 15:03:15 EST 2003



> > > It looks like the following line is fouling up my UserTag.  What can I
> > > change it to so it will work properly?
> > >
> > > my $requestuserid = "$Tag->data( table => 'ebay_variable', field
> > > => 'value',
> > > key => 'user_id' )";
> >
> > Try:
> >
> > my $requestuserid = $Tag->data( table => 'ebay_variable', field
> > => 'value',
> > key => 'user_id' );
> >
> > Rene
>
> I've actually tried it without the double quotes.  If I use something like
> this:
>
> my $requestuserid = 'UserID';
>
> it works perfectly, and the UserID is pulled from the table like this:
>
> [data table="ebay_variable" field="value" key="user_id"]
>
> What else could be wrong?
>
> - Grant

It doesn't look like the data tag wants to work in a UserTag so I'm trying
this:

my $requestuserid = $Db{ebay_variable}->field("user_id", "value");

and I get a 500 error and this in my error.log:

Runtime error: Can't call method "field" on an undefined value at (tag
'scratch') line 11.

Can anyone tell me how to fix the above line?

- Grant



More information about the interchange-users mailing list