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
Setting a Flag(temp variable) in a XLT Iterate
System
Originally posted by Paul Johnston
In a XLT is it possible to set a Flag ( to Y or N ) in a ITERATE on its first iteration and then check the Flag on the second Iteration .
Thanks
Paul
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Paul Johnston
My original solution of COPY =Y to
@Chk2
works.
On subsequent iterations I perform an If
@Chk2
eq =Y
Can't get much simple than that .
For some reason this simple solution was not working earlier and thats
when I was became puzzled and posed my question.
Paul
RobertKersemakers
Hi Paul,
I often forgot to initialize the Flag before the iteration. When checking this Flag, Cloverleaf would give an error because the Flag-variable was unknown.
Maybe that's the case here also?
System
Originally posted by Anonymous
Paul,
I think the problem may be in your IF statement. Personally, I have found that if I try to access something like "YES" or "NO" in an IF statement inside an xlate, that the engine doesn't like it if I say something like "IF
@OBX_FLAG
eq =Y".
Instead I use two "@" variables in my comparison. I have a variable I use in an iterate for an OBX flag. Here is how I do it.
First, I declare my variables outside the iteration:
COPY =NO
@OBX_FLAG
COPY =YES
@YES
COPY =NO
@NO
Second, I set up my IF statement as:
IF
@OBX_FLAG
eq
@NO
Third, in a copy statement, I check a certain feild for the FLAG condition in a Tcl fragment and if the condition is true, then I set my xlatOutVals to change my
@OBX_FLAG
to YES.
COPY 1(0).1(0).1(%g1).OBX.#3
@OBX_FLAG
It seems a bit cumbersome, but it is the only way I could get the IF statement to work and believe me, I tried every way under the sun. If anyone has any other suggestions, please let me know.
Thanks...
Thomas G. Rioux
The Methodist Hospital
System
Originally posted by Paul Johnston
Thomas,
Thanks for your reply . I thought my solution was working but I determined later on the results were not consistent .
I tried your solution and I believe it is much better.
Thanks again for your technique.
Hopefully I can remember it for the next time.
Paul