|
You're not getting the concept. You do not chain to the record. In that trigger buffer you have a before and after image. You modify the field(s) in question in the after image. And then that is what physically get's written to disk. Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Eric A. Wolf" <eric_a_wolf@xxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 09/22/2003 01:48 PM Please respond to RPG programming on the AS400 / iSeries To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> cc: Fax to: Subject: Re: Trigger question But if the record has not been written yet, how can I chain to update the record? Eric ----- Original Message ----- From: "Carlos Kozuszko" <tidesarrollo@xxxxxxxxxxxxxxxxxxxxxx> To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx> Sent: Monday, September 22, 2003 6:39 AM Subject: RE: Trigger question > ADDPFTRG ... ALWREPCHG(*YES) > > > > -----Mensaje original----- > > De: rpg400-l-bounces@xxxxxxxxxxxx > > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]En nombre de Eric A. Wolf > > Enviado el: lunes, 22 de septiembre de 2003 20:27 > > Para: rpg400-l@xxxxxxxxxxxx > > Asunto: Trigger question > > > > > > To the list, > > I know I just saw this question answered but could not find > > it in the archives... > > > > I am firing a trigger during an *INSERT / *BEFORE so I can > > update a field in the record being added. How do I get the > > field filled in before the record is written? I have two > > datastructures defining the before/after images. > > > > TIA... > > Eric A. Wolf > > _______________________________________________ > > This is the RPG programming on the AS400 / iSeries (RPG400-L) > > mailing list > > To post a message email: RPG400-L@xxxxxxxxxxxx > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > > or email: RPG400-L-request@xxxxxxxxxxxx > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/rpg400-l. > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.