[ic] Database access within an ActionMap
Mark Gibson
interchange-users@icdevgroup.org
Mon Jan 27 07:54:01 2003
On Monday 27 Jan 2003 10:01 am, Mark Gibson wrote:
> Hi,
> I'm having problems accessing the database within an ActionMap sub.
[snip]
> How can I get a handle on the database from within an ActionMap?
Ah-ha, I've found a work-around for this, calling the [perl] tag with the
'tables' attribute set does the trick, example:
ActionMap dostuff <<EOF
sub {
$Tag->perl('mytable');
my $db = $Db{mytable};
...
}
EOF
--
Mark Gibson <gibsonm@cromwell-tools.co.uk>
Web Developer
Cromwell Group Holdings Ltd