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
trx proc echo statements
Paul Stein
I am curious if other cloverleaf users keep the trxID proc echo statements for trxID and module or if you comment those out in PROD?
Probably a matter of preference I suppose, as I see a benefit to keeping the echo but that fills up the log files quickly.
I tend to rely on the errodb for unsupported trxIDs, however wanted some advise from the community. Any help appreciated.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
If on your release you can pass arguments at that UPoC position, why not pass a switch then interrogate that switch and echo only if it is on?
Leave the switch on in Test, turn it off for Prod.
If arguments cannot be passed then you can use a Lookup table for the switch using a unique table name base on the IB thread name with something like 'trxid' appended. Your proc will need to look for that Table using the thread name and get the switch from the table.
Paul Stein
Jim - great idea. Make sure I understand.
Pass the whole switch statement as an argument or include the switch statement in the proc and send uargs from the UPoC GUI to turn on/off via interrogating the uarg in the switch?
Jim Kosloskey
If the TrxID UPoC Configuration allows for expressing arguments (I do not know that it does), then you can either use a positional argument or a keyed list (I prefer keyed lists).
So if GUI indicates args:
Positional just place a y or n (or 0 1 your preference)
Keyed List - {DEBUG y}.
I like to code that the value can be any case and I check to make sure a proper value is presented.
Then when your proc is invoked the uargs has whatever you presented.
If you would like an example (not Trxid but another UPoC) of how I do this email me.
Paul Stein
Jim - thank you! I’ll give this a shot and if I get stuck send you an email.
Charlie Bursell
Why create a table? It is superfluous.
If the proc has no startup, simply do this.
In the body of the proc add the following:
if {![info exist DEBUG]} {set DEBUG 0}
The above says you do not want echo statements. If you do change above to
set DEBUG 1
Then for debug statements:
if {$DEBUG} {echo something}
There are methods I have used for turning debug on or off while the engine is running, but I won't get into that here.
Paul Stein
Charlie - thank you for this, that makes sense.
Great suggestions everyone. I am going to work through these and report back with any questions