Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ABL Code 1

Status
Not open for further replies.

anithayeda

Programmer
Apr 4, 2011
3
US
Hi All,
I created a BPM.The logic is whenever user clicks on drop ship checkbox in sales order release a message box should pop up with message "Drop Shipped : " .I know there are many other ways but I would like to do it using ABL code as there is additional code that has to be writen to this.

I wrote an ABL code on Method Code:SalesOrder.Update
Pre-processing
Conditions:
the OrderRel.DropShip field of all rows is equal to the True expression

Actions:asynchronously execute ABL FOR EACH ttOrderrel: ... record call, return

The ABL Code is

MESSAGE "Drop Shipped : "
VIEW-AS ALERT-BOX .

But I dont get any alert/message box when I check the dropship.Am I missing something or is there any other code to show message box.

Thanks.
 
Hi,
Im guessing that you probably already solved this one, but Im answering anyway for future reference.

Epicor 9 doesnt respond to the the "message ... view-as alert-box" command. To get a dialogbox you can use the following which should work for all versions of Epicor 9:

{lib/PublishEx.i &ExMsg = '"Message text"'}
{&THROW_PRIVATE}.

If you are on the latest release (90560x+ then you can also use this:

{lib/PublishInfoMsg.i &InfoMsg = "'Message text'"
&InfoSeverity = {&MESSAGE_INFO}}

You can change the message type by changing the severity
&InfoSeverity = {&MESSAGE_WARN}
&InfoSeverity = {&MESSAGE_ERR}
&InfoSeverity = {&message_UpdateConflict}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top