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
Cloverleaf
DECLARING/SETTING VARIABLE IN TRANSLATION
Stewart
I need to check multiple repeating fields/segments for a value. If the value exists in any these segments I need to send the message on, otherwise I need to stop/kill it. Is it possible to declare a variable, set the variable and then perform an if on the now set variable?
Find more posts tagged with
Clovertech
Comments
Rob Abbott
yes.
copy =value -->
@varname
copy =0 -->
@value_exists
inside your iterate,
if path eq
@varname
copy =1 -->
@value_exists
after your iterate,
if
@value_exists
eq =0
SUPPRESS
Jim Kosloskey
Another way:
SUPPRESSS Action at the beginning of your Xlate followed by the ITERATE.
Inside the ITERATE do the test. If true, build your outbound message then issue a CONTINUE Action (to cut the message) and BREAK Action to get out of the ITERATE else just issue a BREAK Action.
Given the stated situation I don't think you need a variable.