Hi Guys,
I have very little knowledge of 4GL(Progress 9.1D) and usually use SQL to rip the data I need from the tables, but I need to implement a trigger on a table that copies a few fields from one table to another whenever a record is inserted and I was hoping someone could help.
Ive created a new table using the data dictionary and copied the relevant field names across.
Old Table: A2_RECODE
New Table: A2_RECSTORE
Fields: old_code, new_code, date.
I've found the screen where you can add the trigger to A2_RECODE and what I need it to do is insert the latest record's fields from A2_RECODE to A2_RECSTORE whenever a record is added to the old table. There appears to be a Unique ID column called SEQ_NUM if that is of any use.
Any help appreciated
Cheers
Tom
I have very little knowledge of 4GL(Progress 9.1D) and usually use SQL to rip the data I need from the tables, but I need to implement a trigger on a table that copies a few fields from one table to another whenever a record is inserted and I was hoping someone could help.
Ive created a new table using the data dictionary and copied the relevant field names across.
Old Table: A2_RECODE
New Table: A2_RECSTORE
Fields: old_code, new_code, date.
I've found the screen where you can add the trigger to A2_RECODE and what I need it to do is insert the latest record's fields from A2_RECODE to A2_RECSTORE whenever a record is added to the old table. There appears to be a Unique ID column called SEQ_NUM if that is of any use.
Any help appreciated
Cheers
Tom