Good Afternoon,
I'm trying to get an original date stored from OrderRel.Date01 written to OrderRel.Date06 when OrderRel.Date01 is changed.
I used to have a BAM that sent email when the OrderRel.Date01 changed. Everyone hates getting the emails. Therefore, I want to make a dashboard that shows the current value of the order release Date01 field and the last value of the Date01 field, stored in the Date06 field.
I was thinking that an in transaction data directive on OrderRel.date01 change from any to any is the way to go.. but I can't seem to get a handle on the original value data for OrderRel.date01. In the old BAM I could access the "Old"table value. What am I missing? I've tried using tt order release reference vs not tt reference. I've tried using assign statement versus write to buffer statement. I can't get anything to work.
I've been at it all day.... anyone ever do anything like this with a bpm? I keep avoiding trying to use the sales order update bpm because it holds so much updating (header, lines, releases) in it....
I have auditing on the field via a bam as well, but parsing the last changed data out of change log is not going to work nicely for the dashboard.
here's a little bit of what i've tried so far:
For each ttOrderRel where ttOrderRel.RowMod = 'U'.
Find first orderrel where orderrel.OrderNum = ttorderrel.ordernum and orderrel.OrderLine=ttorderrel.OrderLine and ttorderrel.OrderRelNum=orderrel.OrderRelNum no-lock.
if avail ttorderrel then do:
assign ttOrderRel.Date06 = orderrel.Date01.
end.
end.
thanks
Nancy
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Wed, Nov 25, 2015 at 2:49 PM, nhoyt111@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p>Good Afternoon,</p><p><br></p><p>I'm trying to get an original date stored from OrderRel.Date01 written to OrderRel.Date06 when OrderRel.Date01 is changed.  </p><p><br></p><p>I used to have a BAM that sent email when the OrderRel.Date01 changed. Everyone hates getting the emails. Therefore, I want to make a dashboard that shows the current value of the order release Date01 field and the last value of the Date01 field, stored in the Date06 field.</p><p><br></p><p>I was thinking that an in transaction data directive on OrderRel.date01 change from any to any is the way to go.. but I can't seem to get a handle on the original value data for OrderRel.date01. In the old BAM  I could access the "Old"table value. What am I missing? I've tried using tt order release reference vs not tt reference. I've tried using assign statement versus write to buffer statement. I can't get anything to work.</p><p><br></p><p>I've been at it all day.... anyone ever do anything like this with a bpm? I keep avoiding trying to use the sales order update bpm because it holds so much updating (header, lines, releases) in it.... </p><p><br></p><p>I have auditing on the field via a bam as well, but parsing the last changed data out of change log is not going to work nicely for the dashboard.</p><p><br></p><p>here's a little bit of what i've tried so far:</p><p>For each ttOrderRel where ttOrderRel.RowMod = 'U'.</p><p>Find first orderrel where orderrel.OrderNum = ttorderrel.ordernum and orderrel.OrderLine=ttorderrel.OrderLine and ttorderrel.OrderRelNum=orderrel.OrderRelNum no-lock.</p><p>if avail ttorderrel then do:</p><p>assign ttOrderRel.Date06 = orderrel.Date01.</p><p>end.</p><p>end.</p><p><br></p><p>thanks</p><p>Nancy</p><p><br></p><p><br></p><p></p> </div> <div style="color:#fff;min-height:0;"></div>
in your bam .p program you can do the assign and then just set SendEmail = false
Greg
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, November 25, 2015 2:49 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BPM data directive? store old data before update
Good Afternoon,
I'm trying to get an original date stored from OrderRel.Date01 written to OrderRel.Date06 when OrderRel.Date01 is changed.
I used to have a BAM that sent email when the OrderRel.Date01 changed. Everyone hates getting the emails. Therefore, I want to make a dashboard that shows the current value of the order release Date01 field and the last value of the Date01 field, stored in the Date06 field.
I was thinking that an in transaction data directive on OrderRel.date01 change from any to any is the way to go.. but I can't seem to get a handle on the original value data for OrderRel.date01. In the old BAM I could access the "Old"table value. What am I missing? I've tried using tt order release reference vs not tt reference. I've tried using assign statement versus write to buffer statement. I can't get anything to work.
I've been at it all day.... anyone ever do anything like this with a bpm? I keep avoiding trying to use the sales order update bpm because it holds so much updating (header, lines, releases) in it....
I have auditing on the field via a bam as well, but parsing the last changed data out of change log is not going to work nicely for the dashboard.
here's a little bit of what i've tried so far:
For each ttOrderRel where ttOrderRel.RowMod = 'U'.
Find first orderrel where orderrel.OrderNum = ttorderrel.ordernum and orderrel.OrderLine=ttorderrel.OrderLine and ttorderrel.OrderRelNum=orderrel.OrderRelNum no-lock.
if avail ttorderrel then do:
assign ttOrderRel.Date06 = orderrel.Date01.
end.
end.
thanks
Nancy
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6240 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."