Trace on MES method calls

Try STRING(TODAY,"99/99/9999").

The MDY format in Progress is set in the SESSION handle.

Here is a little include file I use to "stamp" records, you might find it useful ... save it as "stamp.i" (.i is an INCLUDE file in Progress lingo)

"{1}" + "|" + string(TODAY,"99-99-9999") + "|" + string(time,"HH:MM:SS") + "|" + DCD-USERID

Usage:

ASSIGN Tablename.Character## = {stamp.i "Event"}.

(where Event is whatever you want to log ... ADDED, CHANGED, RELEASED, POSTED, etc.. You can use entry(n, fieldname, "|") to extract any of the 4 stamp fields (event|Date|Time|User).

Note that this will overflow and cause an error in a shortchar## fields - use the longer (1K) character##.

Note that DCD-USERID Context variable is reference to insert the logged in User-ID so be sure that is available in the surrounding context. In BPM's it is. In external 4GL programs it can be introduced by adding at the top of the program:

{core/nonBOBase.i}

Cheers!

Christopher Heins
Sr. Progress Programmer/Analyst
[cid:image001.png@01CC4861.8F76D8E0]
Cell# 908-256-3662
cheins@...<mailto:cheins@...>



[Non-text portions of this message have been removed]
How do I generate a trace on the method calls in the MES program. I need to take a look at where to hook a BPM when an employee uses the "END ACTIVITY" form.

Thanks
The procedure is in answerbook 11512MPS and can be accessed from the
following link:



https://epicweb.epicor.com/ReportServer/Pages/ReportViewer.aspx?/ePortal
/ABDetail&rs:Command=Render&rc:Toolbar=true&Card_ID=11512MPS&Answerbook=
Vantage%2fVista+8.0+-+General+Information+documents



~Nathan

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of tchristie1
Sent: Wednesday, July 20, 2011 4:52 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Trace on MES method calls





How do I generate a trace on the method calls in the MES program. I need
to take a look at where to hook a BPM when an employee uses the "END
ACTIVITY" form.

Thanks





Click here
<https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
dZtINrMed7Ql346nPnnLe0hVbviV5PEk+hjwq3xXRfv08Q==> to report this email
as spam.
--------------------------------------------------------

This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of Epicor Software Corporation or any other company within its group.


This message has been scanned for malware by Websense. www.websense.com


[Non-text portions of this message have been removed]
V8.03.405a - Does not work for me. Customisation is an available selection on the context menu but Tracing Options are not


--- In vantage@yahoogroups.com, "Nathan Anderson" <naanderson@...> wrote:
>
> The procedure is in answerbook 11512MPS and can be accessed from the
> following link:
>
>
>
> https://epicweb.epicor.com/ReportServer/Pages/ReportViewer.aspx?/ePortal
> /ABDetail&rs:Command=Render&rc:Toolbar=true&Card_ID=11512MPS&Answerbook=
> Vantage%2fVista+8.0+-+General+Information+documents
>
>
>
> ~Nathan
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of tchristie1
> Sent: Wednesday, July 20, 2011 4:52 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Trace on MES method calls
>
>
>
>
>
> How do I generate a trace on the method calls in the MES program. I need
> to take a look at where to hook a BPM when an employee uses the "END
> ACTIVITY" form.
>
> Thanks
>
>
>
>
>
> Click here
> <https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
> dZtINrMed7Ql346nPnnLe0hVbviV5PEk+hjwq3xXRfv08Q==> to report this email
> as spam.
> --------------------------------------------------------
>
> This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of Epicor Software Corporation or any other company within its group.
>
>
> This message has been scanned for malware by Websense. www.websense.com
>
>
> [Non-text portions of this message have been removed]
>
Look at the Business Object - Labor, there is an EndActivity and an
EndActivityComplete Method.



Scott



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
bw2868bond
Sent: Wednesday, July 20, 2011 5:57 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Trace on MES method calls





V8.03.405a - Does not work for me. Customisation is an available selection
on the context menu but Tracing Options are not

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Nathan
Anderson" <naanderson@...> wrote:
>
> The procedure is in answerbook 11512MPS and can be accessed from the
> following link:
>
>
>
> https://epicweb.epicor.com/ReportServer/Pages/ReportViewer.aspx?/ePortal
> /ABDetail&rs:Command=Render&rc:Toolbar=true&Card_ID=11512MPS&Answerbook=
> Vantage%2fVista+8.0+-+General+Information+documents
>
>
>
> ~Nathan
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of tchristie1
> Sent: Wednesday, July 20, 2011 4:52 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Trace on MES method calls
>
>
>
>
>
> How do I generate a trace on the method calls in the MES program. I need
> to take a look at where to hook a BPM when an employee uses the "END
> ACTIVITY" form.
>
> Thanks
>
>
>
>
>
> Click here
> <https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
> dZtINrMed7Ql346nPnnLe0hVbviV5PEk+hjwq3xXRfv08Q==> to report this email
> as spam.
> --------------------------------------------------------
>
> This e-mail is for the use of the intended recipient(s) only. If you have
received this e-mail in error, please notify the sender immediately and then
delete it. If you are not the intended recipient, you must not use, disclose
or distribute this e-mail without the author's prior permission. We have
taken precautions to minimize the risk of transmitting software viruses, but
we advise you to carry out your own virus checks on any attachment to this
message. We cannot accept liability for any loss or damage caused by
software viruses. Any views and/or opinions expressed in this e-mail are of
the author only and do not represent the views of Epicor Software
Corporation or any other company within its group.
>
>
> This message has been scanned for malware by Websense. www.websense.com
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
The right-click trace worked great for me. Thanks for the info. All these hidden little tricks!

Scott, I had looked through labor and had played around with those methods, however it didn't have the info I needed in them. However, labor.update had it. Just needed to have a condition that looks at the processID to avoid running my bpm when labor.update is called by other elements (it is used by start labor activity and some others).

--- In vantage@yahoogroups.com, "Scott Litzau" <scott.litzau@...> wrote:
>
> Look at the Business Object - Labor, there is an EndActivity and an
> EndActivityComplete Method.
>
>
>
> Scott
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> bw2868bond
> Sent: Wednesday, July 20, 2011 5:57 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Trace on MES method calls
>
>
>
>
>
> V8.03.405a - Does not work for me. Customisation is an available selection
> on the context menu but Tracing Options are not
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Nathan
> Anderson" <naanderson@> wrote:
> >
> > The procedure is in answerbook 11512MPS and can be accessed from the
> > following link:
> >
> >
> >
> > https://epicweb.epicor.com/ReportServer/Pages/ReportViewer.aspx?/ePortal
> > /ABDetail&rs:Command=Render&rc:Toolbar=true&Card_ID=11512MPS&Answerbook=
> > Vantage%2fVista+8.0+-+General+Information+documents
> >
> >
> >
> > ~Nathan
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> > Of tchristie1
> > Sent: Wednesday, July 20, 2011 4:52 PM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] Trace on MES method calls
> >
> >
> >
> >
> >
> > How do I generate a trace on the method calls in the MES program. I need
> > to take a look at where to hook a BPM when an employee uses the "END
> > ACTIVITY" form.
> >
> > Thanks
> >
> >
> >
> >
> >
> > Click here
> > <https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
> > dZtINrMed7Ql346nPnnLe0hVbviV5PEk+hjwq3xXRfv08Q==> to report this email
> > as spam.
> > --------------------------------------------------------
> >
> > This e-mail is for the use of the intended recipient(s) only. If you have
> received this e-mail in error, please notify the sender immediately and then
> delete it. If you are not the intended recipient, you must not use, disclose
> or distribute this e-mail without the author's prior permission. We have
> taken precautions to minimize the risk of transmitting software viruses, but
> we advise you to carry out your own virus checks on any attachment to this
> message. We cannot accept liability for any loss or damage caused by
> software viruses. Any views and/or opinions expressed in this e-mail are of
> the author only and do not represent the views of Epicor Software
> Corporation or any other company within its group.
> >
> >
> > This message has been scanned for malware by Websense. www.websense.com
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>