Rich,
This is great. Thanks.
Regards,
Scott
-----Original Message-----
From: RICH WAGNER [mailto:rwagner@...]
Sent: Thursday, January 26, 2006 8:50 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM Procedure
Arron,
Here is the complete code, I used Mike's method and it worked. The pop
up message here is just text. You can also use this
STRING(Vendor.Character01)SKIP and it will display the value of the data
field.
Hope this answers you question.
{ud/GlbAlert.i &tablename = "OrderHed" }
IF OrderHed.Character02 = "" and (OrderHed.ShipViaCode = "UPST"
or OrderHed.ShipViaCode = "UP3T"
or OrderHed.ShipViaCode = "U2TP"
or OrderHed.ShipViaCode = "UPG"
or OrderHed.ShipViaCode = "UNST"
or OrderHed.ShipViaCode = "NDAT"
or OrderHed.ShipViaCode = "NDAM"
or OrderHed.ShipViaCode = "FXPT"
or OrderHed.ShipViaCode = "FNDA"
or OrderHed.ShipViaCode = "FDXT"
or OrderHed.ShipViaCode = "F2TP"
or OrderHed.ShipViaCode = "FDTP"
or OrderHed.ShipViaCode = "FEDT"
or OrderHed.ShipViaCode = "FDTT")
THEN DO:
MESSAGE STRING("") SKIP
STRING("PLEASE USE THE")SKIP
STRING("VB FORM TO INPUT")SKIP
STRING("THE CUSTOMER'S")SKIP
STRING("THIRD PARTY SHIPPING NUMBER")SKIP
VIEW-AS ALERT-BOX INFO
TITLE "VANTAGE ALERT".
END.
ELSE DO:
Return "Cancel Send":U.
END.
From: Aaron Hoyt [mailto:aaron.hoyt@...]
Sent: Thursday, January 26, 2006 8:37 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM Procedure
Rich,
I how exactly did you get the pop-up box? Can you use it to request
information? Do you need provision? I have had some difficulty getting
this function to work for me. Any assistance would be appreciated.
PS. an alternative to the Method Mike gave (either will work just fine)
is
to declare a variable and test against that keeping any items that need
changing over time to one area (where you declare you variables), for
instance...
DEFINE VARIABLE shipcode AS CHARACTER INITIAL "UPST,ABCD,WXYZ" NO-UNDO.
IF LOOKUP (OrderHed.ShipViaCode, shipcode) > 0 AND OrderHed.Character01
= ""
THEN DO:
Thanks,
Aaron Hoyt
Vantage Plastics
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On Behalf
Of RICH WAGNER
Sent: Wednesday, January 25, 2006 5:12 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAM Procedure
I am trying to write an alert that will pop up a box when we enter a
sales order with a ShipVia that requires a third party shipper number
and the character01 field is blank. I have it working with one of our
ShipVia using the statement below, but would like to add other
ShipViacodes and do not know the correct syntax in progress. Can anyone
help, Thanks
IF OrderHed.Character01 = "" and OrderHed.ShipViaCode = "UPST"
Rich Wagner
BAW Plastics
Phone: (412)384-3100
E-Mail: rwagner@...
[Non-text portions of this message have been removed]
This is great. Thanks.
Regards,
Scott
-----Original Message-----
From: RICH WAGNER [mailto:rwagner@...]
Sent: Thursday, January 26, 2006 8:50 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM Procedure
Arron,
Here is the complete code, I used Mike's method and it worked. The pop
up message here is just text. You can also use this
STRING(Vendor.Character01)SKIP and it will display the value of the data
field.
Hope this answers you question.
{ud/GlbAlert.i &tablename = "OrderHed" }
IF OrderHed.Character02 = "" and (OrderHed.ShipViaCode = "UPST"
or OrderHed.ShipViaCode = "UP3T"
or OrderHed.ShipViaCode = "U2TP"
or OrderHed.ShipViaCode = "UPG"
or OrderHed.ShipViaCode = "UNST"
or OrderHed.ShipViaCode = "NDAT"
or OrderHed.ShipViaCode = "NDAM"
or OrderHed.ShipViaCode = "FXPT"
or OrderHed.ShipViaCode = "FNDA"
or OrderHed.ShipViaCode = "FDXT"
or OrderHed.ShipViaCode = "F2TP"
or OrderHed.ShipViaCode = "FDTP"
or OrderHed.ShipViaCode = "FEDT"
or OrderHed.ShipViaCode = "FDTT")
THEN DO:
MESSAGE STRING("") SKIP
STRING("PLEASE USE THE")SKIP
STRING("VB FORM TO INPUT")SKIP
STRING("THE CUSTOMER'S")SKIP
STRING("THIRD PARTY SHIPPING NUMBER")SKIP
VIEW-AS ALERT-BOX INFO
TITLE "VANTAGE ALERT".
END.
ELSE DO:
Return "Cancel Send":U.
END.
From: Aaron Hoyt [mailto:aaron.hoyt@...]
Sent: Thursday, January 26, 2006 8:37 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAM Procedure
Rich,
I how exactly did you get the pop-up box? Can you use it to request
information? Do you need provision? I have had some difficulty getting
this function to work for me. Any assistance would be appreciated.
PS. an alternative to the Method Mike gave (either will work just fine)
is
to declare a variable and test against that keeping any items that need
changing over time to one area (where you declare you variables), for
instance...
DEFINE VARIABLE shipcode AS CHARACTER INITIAL "UPST,ABCD,WXYZ" NO-UNDO.
IF LOOKUP (OrderHed.ShipViaCode, shipcode) > 0 AND OrderHed.Character01
= ""
THEN DO:
Thanks,
Aaron Hoyt
Vantage Plastics
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]On Behalf
Of RICH WAGNER
Sent: Wednesday, January 25, 2006 5:12 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAM Procedure
I am trying to write an alert that will pop up a box when we enter a
sales order with a ShipVia that requires a third party shipper number
and the character01 field is blank. I have it working with one of our
ShipVia using the statement below, but would like to add other
ShipViacodes and do not know the correct syntax in progress. Can anyone
help, Thanks
IF OrderHed.Character01 = "" and OrderHed.ShipViaCode = "UPST"
Rich Wagner
BAW Plastics
Phone: (412)384-3100
E-Mail: rwagner@...
[Non-text portions of this message have been removed]