You can. See
http://code.midrange.com/index.php?id=2b2560d170
The trick is to accept the parameters (buffer) and pass it to the
programs that perform the processing. In your case, if you just want to
email, accept the parameters and don't update anything.
Loyd Goodbar
Senior programmer/analyst
BorgWarner
TS Water Valley
662-473-5713
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Don Cavaiani
Sent: Thursday, April 26, 2007 12:38
To: Midrange Systems Technical Discussion
Subject: RE: Brainstorming
Never having learned much more coding than RPG 2, I guess I was hoping
for a simple way to trigger just a CLP - which would probably contain a
query or two which would "select" out only the records for the vendor in
question, and only those which have been changed or added since last
"trigger". Then, probably an auto PC support download, and an email
with attachment out to the vendor. I had these visions
..................
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Thursday, April 26, 2007 12:28 PM
To: Midrange Systems Technical Discussion
Subject: RE: Brainstorming
Yes it should "be work". But it won't work. :-)
When a trigger is fired many parameters are implicitly added. Including
such information as to what file, in what library, was updated. Also
what the record format look like before, and after, the change. That
way you can automatically do stuff like "I only care if they changed
certain fields on the PO. Like, if they changed the shipping address I
could not care. But if they changed the status to say shipped I want to
send a notice to the customer that it was shipped at this date/time on
this truck.
Now, with all the parameters automatically sent to the program you
should NOT chain back to the file that the trigger was based on. Why
would you have a need to? All the information is in the parameters.
Unless you are doing something really weird like sending the customer a
list of, not only this po, but all po's they have with you.
(As I am typing I just realized that I am confusing PO's, customers and
vendors - try to get past that.)
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.