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
Return multiple values to an xlate
Mike Campbell
I'm currently writing a tclproc to query an odbc database for values.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Mike,
Is this proc an xltp type proc (invoked from within the Xlate) or a Tps type proc - executed before the Xlate?
Mike Campbell
It is an xltp type proc.
System
Originally posted by sylaja suseela
Hi Mike,
Could you please share tcl code for doing ODBC from Xlate?
I want to query Oracle DB passing 2 arguments ( to be used in qry where clause) and return a single value back to Xlate.
Thanks in advance,
Sylaja
Mike Campbell
Sylaja,
System
Originally posted by John Vano
Ironically something similar to this was part of an training project I just did. I acomplished this using a copy action with the following pre-proc:
set last [lindex $xlateInVals 0]
# iterate over PID;5 to add the OBX with
for {set i 0} {$i < [string length $last]} {incr i} {
xpmstore $xlateId 1(0).OBX($i).#1(0) c [expr $i+1]
xpmstore $xlateId 1(0).OBX($i).#3(0) c Space^Mountain
xpmstore $xlateId 1(0).OBX($i).#5(0) c [string index $last $i]
}
Hope this helps.
System
Originally posted by sylaja suseela
Thanks Mike, John.
I have successfully completed this ODBC call to Oracle from Xlate and put it live.
Mike, I am doing similar to what you did. Many thanks for the code example.
Regards,
Sylaja
Mike Campbell
Sylaja,
I'm glad it worked for you.
Mike C.
System
Originally posted by sylaja suseela
Hi Mike,
The bit of ODBC code to query oracle DB is working fine. However I see an additional qyery being issued against the Oracle DB 'SELECT TZ_OFFSET (DBTIMEZONE), TZ_OFFSET (SESSIONTIMEZONE) FROM DUAL'. These are adding on to the process count and causing issues in Oracle (max processes = 300).
Anybody seen such queries being issued behind the scenes by odbc SQLFreeHandle functions?
Thanks,
Sylaja