infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
xpmdispose
Steve Drozdowski
Does anyone have an example of how to use xpmdispose within a tcl fragment? This would be used to "kill" a msg in an xlate.
Yes, I know, it is always better to filter msgs pre-xlate...
Thanks.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
If you are on a Cloverleaf release that has the IF Action you can do the IF Action and then issue a SUPPRESS when true. The SUPRESS ends up not producing a message from the Xlate - pretty much the same as KILLing it.
No Tcl required...
Jim Kosloskey
I realize I did not give any input to the actual question.
It has been a while since I have used xpmdispose (maybe as long as 12 - 13 years), however I seem to recall that is used for messages you create inside your XPM code (with an xpmencode for example) not for the message the XPM (Xlate is creating).
The structure is xpmdispose xpmid disp msgid - where:
xpmid is the Xlate handle provided by XPM
disp is the disposition to be applied to the msgid list
msgid is a list of message handles (created with the xpmencode mentioned above as I recall)
System
Originally posted by Robert Milfajt
Within an Xlate, you do not have access to the message handle of the message being created by the Xlate, probably because the Xlate is actually creating the outbound message. Everything else Jim said is right on the money.
You need to use SUPRESS from within the Xlate. If you need to do work from within a TCL fragment, have that statement set a variable, e.g.,
@kill
. Then in a subsequent Xlate statement do an IF on the value of
@kill
and SUPRESS as necessary.
Hope this helps,