[ic] Hooks into authorization

Stefan Hornburg Racke interchange-users@icdevgroup.org
Fri Jul 26 15:50:01 2002


"Kevin Walsh" <kevin@cursor.biz> writes:

> >    I want to keep a record of transactions *outside* of interchange in a
> > another database. Specifically, I want to maintain a database of the
> > transaction amount. Are there any hooks in the code that I can use for
> > this purpose? If not, could someone give a quick pointer to where in the
> > code I could go to implement such a thing?
> > 
> You could add some code to your etc/log_transaction file to add a
> record to your external table.
> 
> You will have to set up a table description in a file under your
> "dbconf" directory, defining the DSN/username/password/columns etc.
> otherwise Interchange won't know how to use your table.

Yes, putting it into catalog.cfg would suffice equally.

> 
> If your table exists and you set up a dbconf file, make sure you
> also create an empty products/tablename.sql file.  This will stop
> Interchange from attempting to drop/recreate the external table.

NoImport yourtable

would work also.

Ciao
        Racke

-- 
Prolific Interchange Consulting (Excellent German Quality !).
Take a look at Materialboerse (http://www.materialboerse.de/), WITT 
(http://www.witt-weiden.de/), Boxmover (http://shop.boxmover.ch/) or 
Passionshop (http://www.passionshop.com/racke). Need a shop ? Contact us.