Hi,

Again an issue which is not very clear for me...Please correct me if I'm
wrong...

I can write an SQL trigger for an Insert, which is fired when an Insert
takes place via SQL access...

I can also write a procedure %OnAfter Save(Insert) for an insert as well,
which is fired only a class instance is saved. (Yet it has a parameter,
Insert which gives me a clue on wheter the save takes place for a new
instance)

So, if I need a trigger for both cases, I need to call the same function
from both triggers... Is this true?

Another question is, %OnAfterSave does not know the %Id value of the
inserted record. (I guess that is because of the transaction not yet
completed) So what should I do if I need it within the trigger?

Thanks for your help, my experience with Cache is getting more interesting
by time...

Best wishes,
Teoman





Reply via email to