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
How can I use variable to define PATH?
System
Originally posted by Jae Joo
Hi,
I do have a problem to use variable to define PATH.
For example,
set idx 1
set status [datget [grmfetch $ghd {1($idx).PID(0).00581(0).[0]}] VALUE]
it returned 1(0).PID.00581(0).[0].
Does anyone know why?
Jae
Find more posts tagged with
Clovertech
Comments
RobertKersemakers
Hi Jae,
I don't think you can access a PATH in TCL anywhere in Cloverleaf. You can only use a PATH as a variable in your translation.
If you want to use a variable in a PATH, you can do it like this (in a translation that is):
=0 --> $%g1
1(%g1).PID(0).00581(0).[0] -->
@whatever
This way you can use variable %g1 in your PATH. Always remember to use $%g1 to change the value of %g1.
Jim Kosloskey
I will take a stab at this.
Perhaps your problem is you have the path enclosed in curly braces. With that I think your variable is not getting a value substituted for it so the path when grm gets it actually has the variable name and not the numeric value associated with the variable name.
Have you tried quote instead of curly brace?
Jim Kosloskey
System
Originally posted by Jae Joo
Thanks Jim
set status [datget [grmfetch $ghd "1($idx).PID(0).00581(0).[0]"] VALUE]
Jae