Progress
Programming
Handbook


REPLICATION–CREATE Schema Trigger Example

REPLICATION–CREATE triggers execute just after Progress fires any applicable CREATE triggers. Here is an example of one:

TRIGGER PROCEDURE FOR REPLICATION-CREATE OF Customer. 
CREATE Replication. 
ASSIGN 
      Replication.Entry-Id = NEXT-VALUE(Replication-entry) 
      Replication.Table-Name = "Customer" 
      Replication.Task-Id = DBTASKID(LDBNAME(BUFFER Replication)) 
      Replication.Repl-Event = "Create". 
RAW-TRANSFER Customer TO Replication.Record. 

This REPLICATION–CREATE trigger captures all the information on a newly-created Customer record you need in order to replicate the create. For more information, see the section "Implementing Trigger-based Replication."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095