Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [VanGogh] Translating Values

Quote Reply
Re: [VanGogh] Translating Values In reply to
You need a global template to pull out County_Name from Counties table. Here is the code:

sub {
my $id = shift;
my $name = $DB->table('Counties')->select('County_Name', { IDNumber => $id })->fetchrow;
return $name;
}

Now you can use <%global_name($IDNumber)%> in the template

TheStone.

B.
Subject Author Views Date
Thread Translating Values VanGogh 2287 Apr 21, 2005, 5:32 AM
Thread Re: [VanGogh] Translating Values
604 2202 Apr 21, 2005, 9:30 AM
Post Re: [TheStone] Translating Values
VanGogh 2199 Apr 21, 2005, 10:04 AM