[ic] Read UserDB dealer field using perl

Stefan Hornburg racke at linuxia.de
Wed Jul 9 10:55:07 EDT 2003

On Tue, 8 Jul 2003 19:02:37 -0700
"Farshad Farzan" <farzan at intelmeas.com> wrote:

> How can I read the dealer field of the logged in user in perl ??
> my $uu = $Vend::Session->{username};
> my $dealerstate =
> Vend::Data::database_field($Vend::UserDB,$uu,"dealer",undef);
> This should give the right dealer value , but it does not work.. 

This will only work in a global usertag. Try this in a catalog usertag:

$Tag->perl({tables => 'userdb'});
my $dealerstate = $Tag->data('userdb', 'dealer', $Session->{username});


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list