Carlos Canau wrote:
> > I want to use a defined variable updated from a hook in
> > AcctSQLStatement. For example :
>
> Try something along the lines of:
>
> &main::setVariable('varname', 'value');
Ups!
There is an example in the 'goodies' directory. I'm sorry
Thanks
Hello Javier -
Have a look at the example hooks in "goodies/hooks.txt" to see how to do this.
regards
Hugh
On Fri, 29 Sep 2000, Javier Chicharro wrote:
> I want to use a defined variable updated from a hook in
> AcctSQLStatement. For example :
>
> AcctSQLStatment INSERT INTO table VALUES ('
I want to use a defined variable updated from a hook in
AcctSQLStatement. For example :
AcctSQLStatment INSERT INTO table VALUES ('%{GlobalVar:varname}')
I've tested with a $p->setVariable('varname', 'value'); in a
PreHook but it doesn't change the value.
Is it possible to do