All,
I'm running into an issue where DB triggers are not firing when using Save-Row-Changes. We have trigger files (.t) where in this particular case a sequence is generated and added to the record during a create. The record is created but just not the sequence, timestamps or user name info. Here is a snippet of the code. I'm not sure what I am missing here?
Thanks,
Brad
You need to skip the fields that are being assigned in create triggers:
handle:SAVE-ROW-CHANGES( buffer-index buffer-name
, skip-list , no-lobs )
Thanks Peter...that worked!!
You need to skip the fields that are being assigned in create triggers:
I forgot to explain why:
Contrary to what you are/were thinking, your create triggers are firing and properly populating your fields.
But without the skip-list they are subsequently immediately overwritten with the initial values from your buffer.
-peter
Contrary to what you are/were thinking, your create triggers are firing and properly populating your fields.
Because due to the atomic nature of SAVE-ROW-CHANGES there is no place to populate the temp table with the result of the DB create trigger before the (not struck by the create trigger) values of the ProDataset temp-table buffer are all assigned to the DB - over the result of the create trigger.