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
Can I Stop a Message
Collin Praster
Can you stop a message if a value is blank in cloverleaf?
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
You can ERROR the message (sending it to the Error DB) or KILL the message (meaning it disappears from inside the engine).
Both can be done with either a Tcl proc or inside an Xlate.
If this is a condition you know can happen frequently and you just want to filter the message, current norm is to use Tcl and do it pre route.
Collin Praster
How do you do it inside the xlate, killing the message would be totally fine.
Collin Praster
Or is there a way to suppress?
Jim Kosloskey
The SUPPRESS Action in an Xlate KILLs the message.
Collin Praster
Should this work?
Collin Praster
second try
Collin Praster
This is the message I get when I try the above entry
MESSAGE 1
PANIC: assertion 'val != ((struct Value *) 0)' failed at Value.cpp/340
Jim Kosloskey
I think your IF is wrong.
Try using an equal sign followed by a space for space (like this sans parentheses (= )).
However, if you want to SUPPRESS if PID-4 is equal to spaces then
- the SUPRESS should be subordinate to the IF.
- to be most efficient you should probably put all of the other activity under the else - like this:
IF PID-4 eq =
SUPPRESS
ELSE
COPY
COPY
COPY
... etc.
Also is it all of PID-4 that can be spaces for you to SUPPRESS the message or is it just one component? Is it just one space or could there be more than one space (checking against (= ) only checks for a single space)? If it can be more than one space but you don't know how many then you will need some tcl to check for all spaces. The same is true if it can be one or more spaces.
System
Originally posted by Mark Thompson
Space and blank are very different things in Cloverleaf. If you want to check if the field is blank you can use:
IF 0(0).PD1(0).#4(0) eq
@null
If you really are checking for a field with 1 space character in it, your code is much clearer if you copy 1 space character into a variable (like
@space)
and then use:
IF 0(0).PD1(0).#4(0) eq
@space
Collin Praster
Thank you everyone for the help, all the suggestions helped me get it accomplished