BAM e-mail & Progress coding

Norman,
>From there, make judicious use of the Progress Help. I was one of the early
pioneers of BAM .p procedures and learned most everything I know either from
this list or from the help (with some basic programming background to
understand what to look for). The Help is Progress help, not Vantage help.
I picked up a copy of ConTEXT (a highlighting editing software for
programming with a plug-in for progress) and after setting that to bring up
progress help, I have found that to be an invaluable tool in the process
also.
Then, once you have some basics, please feel free to ask us questions (it's
the best way for us all to grow as a group).
Good luck,
Aaron Hoyt
Vantage Plastics

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On Behalf
Of RICH WAGNER
Sent: Thursday, May 18, 2006 9:35 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM e-mail & Progress coding


Under the ud folder are some example .p files, you could start there.

Rich Wagner
BAW Plastics

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Norman Hutchins
Sent: Thursday, May 18, 2006 9:35 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM e-mail & Progress coding

Since we're on the topic of BAM and global alerts, does anyone
know a good way to learn how to code Progress coding? We are new
to Vantage, went live on V8 in January, and they are people here
how would like to send out automatic e-mail with information in
them. I just need to know where to start, are there websites,
books or something to learn the basics and go from there? Any
help would be great



Thanks,



Norman Hutchins Jr.

Network Administrator



Howell Laboratories, Inc.



'Correct me if I'm wrong, but hasn't the fine line between sanity
and madness gotten finer?' -- George Price



[Non-text portions of this message have been removed]




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links










Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links
I am having a problem with the sending of e-mail alerts from Progress
code. My Global alerts and BAM alerts both work fine if I state the e-
mail recipient explicitly in the "To:" section of the appropriate
screen. However, when I embed the email address in the alert program
(as I need to, since these are conditional alerts) I get no response.
I also get no error messages, either directly on screen or in the
Alert Message Log.

My code looks like:
{ud/GlbAlert.i &TableName = "OrderDtl"}

IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
Assign Email-To = "r.joy@...". Email-CC
= "k.walker@...".
Email-Text = "Part Number " + STRING(orderdtl.partnum) + " has
been added to SO "
+ string(orderdtl.ordernum) + " for despatch on " + string
(orderdtl.needbydate) + ".".
END.
ELSE DO: RETURN "Cancel Send":U. END.

Return.

I'd be very grateful if anyone can help.

Ruth Joy
Permastore Ltd
Ruth,
Try:
**************
{ud/GlbAlert.i &TableName = "OrderDtl"}

IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
Assign Email-To = "r.joy@..."
Email-CC = "k.walker@..."
Email-Text = "Part Number " + STRING(orderdtl.partnum) + " has
been added to SO "
+ string(orderdtl.ordernum) + " for despatch on " +
string (orderdtl.needbydate) + ".".
END.
ELSE DO:
RETURN "Cancel Send":U.
END.

*****************

I don't use '.' in the Assign statement until I am finished with the
statement. Also I don't use the return. at the end. I don't know if these
are the problem, but I would give this a shot first.
If not, let me know and I will give it a little more carefull review.
Good luck,
Aaron Hoyt
Vantage Plastics


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On Behalf
Of perm_rjoy
Sent: Wednesday, May 17, 2006 12:17 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAM e-mail


I am having a problem with the sending of e-mail alerts from Progress
code. My Global alerts and BAM alerts both work fine if I state the e-
mail recipient explicitly in the "To:" section of the appropriate
screen. However, when I embed the email address in the alert program
(as I need to, since these are conditional alerts) I get no response.
I also get no error messages, either directly on screen or in the
Alert Message Log.

My code looks like:
{ud/GlbAlert.i &TableName = "OrderDtl"}

IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
Assign Email-To = "r.joy@...". Email-CC
= "k.walker@...".
Email-Text = "Part Number " + STRING(orderdtl.partnum) + " has
been added to SO "
+ string(orderdtl.ordernum) + " for despatch on " + string
(orderdtl.needbydate) + ".".
END.
ELSE DO: RETURN "Cancel Send":U. END.

Return.

I'd be very grateful if anyone can help.

Ruth Joy
Permastore Ltd
Thanks for your response, Aaron.
My script is scattered with full stops because I had added them in
after looking at other people's scripts and thought that they may be
the magic ingredient.
I have now run your script and the effect is the same: no error
messages and no e-mail.
I rather wondered if we had some sort of process not running on our
server???? We obviously have the BAM Alerts process started (and
working as we get the explicitly addressed e-mails). Is there
something else?

--- In vantage@yahoogroups.com, "Aaron Hoyt" <aaron.hoyt@...> wrote:
>
> Ruth,
> Try:
> **************
> {ud/GlbAlert.i &TableName = "OrderDtl"}
>
> IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
> Assign Email-To = "r.joy@..."
> Email-CC = "k.walker@..."
> Email-Text = "Part Number " + STRING(orderdtl.partnum)
+ " has
> been added to SO "
> + string(orderdtl.ordernum) + " for
despatch on " +
> string (orderdtl.needbydate) + ".".
> END.
> ELSE DO:
> RETURN "Cancel Send":U.
> END.
>
> *****************
>
> I don't use '.' in the Assign statement until I am finished with the
> statement. Also I don't use the return. at the end. I don't know
if these
> are the problem, but I would give this a shot first.
> If not, let me know and I will give it a little more carefull
review.
> Good luck,
> Aaron Hoyt
> Vantage Plastics
>
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On
Behalf
> Of perm_rjoy
> Sent: Wednesday, May 17, 2006 12:17 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] BAM e-mail
>
>
> I am having a problem with the sending of e-mail alerts from
Progress
> code. My Global alerts and BAM alerts both work fine if I state the
e-
> mail recipient explicitly in the "To:" section of the appropriate
> screen. However, when I embed the email address in the alert program
> (as I need to, since these are conditional alerts) I get no
response.
> I also get no error messages, either directly on screen or in the
> Alert Message Log.
>
> My code looks like:
> {ud/GlbAlert.i &TableName = "OrderDtl"}
>
> IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
> Assign Email-To = "r.joy@...". Email-CC
> = "k.walker@...".
> Email-Text = "Part Number " + STRING(orderdtl.partnum) + " has
> been added to SO "
> + string(orderdtl.ordernum) + " for despatch on " + string
> (orderdtl.needbydate) + ".".
> END.
> ELSE DO: RETURN "Cancel Send":U. END.
>
> Return.
>
> I'd be very grateful if anyone can help.
>
> Ruth Joy
> Permastore Ltd
>
Ruth,
The process is the same for global alerts and BAM alerts.
I would have to ask this...are you sure this section of code is running?
Maybe you can add in a message box or something to prove that the code is
executing as you expect. Maybe explicitly enter the email address in the
BAM and then check that the text fills in as expected in the code below. If
it does, I have no explanation as to why the email address will not assign
correctly.
Maybe try Email-To = Email-To + "; r.joy@..."
This should have the effect of setting the mail to to the explicitly
assigned and the one you add in your code. This might also help
troubleshoot.
Good luck,
Aaron Hoyt
Vantage Plastics

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On Behalf
Of perm_rjoy
Sent: Thursday, May 18, 2006 4:16 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BAM e-mail


Thanks for your response, Aaron.
My script is scattered with full stops because I had added them in
after looking at other people's scripts and thought that they may be
the magic ingredient.
I have now run your script and the effect is the same: no error
messages and no e-mail.
I rather wondered if we had some sort of process not running on our
server???? We obviously have the BAM Alerts process started (and
working as we get the explicitly addressed e-mails). Is there
something else?

--- In vantage@yahoogroups.com, "Aaron Hoyt" <aaron.hoyt@...> wrote:
>
> Ruth,
> Try:
> **************
> {ud/GlbAlert.i &TableName = "OrderDtl"}
>
> IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
> Assign Email-To = "r.joy@..."
> Email-CC = "k.walker@..."
> Email-Text = "Part Number " + STRING(orderdtl.partnum)
+ " has
> been added to SO "
> + string(orderdtl.ordernum) + " for
despatch on " +
> string (orderdtl.needbydate) + ".".
> END.
> ELSE DO:
> RETURN "Cancel Send":U.
> END.
>
> *****************
>
> I don't use '.' in the Assign statement until I am finished with the
> statement. Also I don't use the return. at the end. I don't know
if these
> are the problem, but I would give this a shot first.
> If not, let me know and I will give it a little more carefull
review.
> Good luck,
> Aaron Hoyt
> Vantage Plastics
>
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On
Behalf
> Of perm_rjoy
> Sent: Wednesday, May 17, 2006 12:17 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] BAM e-mail
>
>
> I am having a problem with the sending of e-mail alerts from
Progress
> code. My Global alerts and BAM alerts both work fine if I state the
e-
> mail recipient explicitly in the "To:" section of the appropriate
> screen. However, when I embed the email address in the alert program
> (as I need to, since these are conditional alerts) I get no
response.
> I also get no error messages, either directly on screen or in the
> Alert Message Log.
>
> My code looks like:
> {ud/GlbAlert.i &TableName = "OrderDtl"}
>
> IF mfgsys.OrderDtl.SalesCatID = "SPU" THEN DO:
> Assign Email-To = "r.joy@...". Email-CC
> = "k.walker@...".
> Email-Text = "Part Number " + STRING(orderdtl.partnum) + " has
> been added to SO "
> + string(orderdtl.ordernum) + " for despatch on " + string
> (orderdtl.needbydate) + ".".
> END.
> ELSE DO: RETURN "Cancel Send":U. END.
>
> Return.
>
> I'd be very grateful if anyone can help.
>
> Ruth Joy
> Permastore Ltd
>








Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links
Since we're on the topic of BAM and global alerts, does anyone
know a good way to learn how to code Progress coding? We are new
to Vantage, went live on V8 in January, and they are people here
how would like to send out automatic e-mail with information in
them. I just need to know where to start, are there websites,
books or something to learn the basics and go from there? Any
help would be great



Thanks,



Norman Hutchins Jr.

Network Administrator



Howell Laboratories, Inc.



'Correct me if I'm wrong, but hasn't the fine line between sanity
and madness gotten finer?' -- George Price



[Non-text portions of this message have been removed]
Under the ud folder are some example .p files, you could start there.

Rich Wagner
BAW Plastics

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Norman Hutchins
Sent: Thursday, May 18, 2006 9:35 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM e-mail & Progress coding

Since we're on the topic of BAM and global alerts, does anyone
know a good way to learn how to code Progress coding? We are new
to Vantage, went live on V8 in January, and they are people here
how would like to send out automatic e-mail with information in
them. I just need to know where to start, are there websites,
books or something to learn the basics and go from there? Any
help would be great



Thanks,



Norman Hutchins Jr.

Network Administrator



Howell Laboratories, Inc.



'Correct me if I'm wrong, but hasn't the fine line between sanity
and madness gotten finer?' -- George Price



[Non-text portions of this message have been removed]




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links