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
TPS Proc Arguments
System
Originally posted by Andrea Mancini
Hi, I am very new and completely forgot how to add arguments to the "arguments" box when specifying a TPS proc. Can someone give me the syntax?
i.e. SITE WIH or SITE "WIH"
Find more posts tagged with
Clovertech
Comments
david_barr
Usually it is something like this:
{ SITE WIH }
System
Originally posted by Andrea Mancini
WOW that was quick! My first post!
Thanks, that didn't seem to work.
This is the code in the "start" section
# Get the "SITE" argument
set site [keylget args ARGS.SITE]
This is the code calling it...
# Do table lookup here by site argument
set sLookUpValue [hcitbllookup tbl_FacilityByEpicDept $MSH3]
# If it's not the site that was passed in via argument, then kill the message
if { $sLookUpValue ne $site } {
puts "KILLING message: Invalid site 2."
set disp KILL
}
This is my error in the testing tool:
Please Wait ......
Command Issued: hcitpstest -r run -x ASCII -f nl -c sms_ib_data /hci/cis6.0/integrator/site_dev_alm/data/Cerner_WIH_ORU_Basic_Out.dat "tps_filterByFacility { SITE WIH }"
Command output:
[0:TEST] Tcl error:
msgId = message0
proc = 'tps_filterByFacility'
args = '{ SITE WIH }'
result = 'can't read "site": no such variable'
errorInfo: '
can't read "site": no such variable
while executing
"if { $sLookUpValue ne $site } {
puts "KILLING message: Invalid site 2."
set disp KILL
}"
(procedure "tps_filterByFacility" line 51)
invoked from within
"tps_filterByFacility {MSGID message0} {CONTEXT sms_ib_data} {ARGS {{ SITE WIH }}} {MODE run} {VERSION 3.0}"'
Jim Kosloskey
I am guessing the code referencing ths variable 'site' is in the 'run' section,
So if that is true, did you specify 'site' as a global?
System
Originally posted by Andrea Mancini
Thanks Jim! I thought if you set a local variable in the "start" section that it could be called in the "run" section. Just using a copied proc from my instructor! Thanks again!
Jim Kosloskey
Andrea,
The important thing is now YOU know