Forum Replies Created
-
AuthorReplies
-
Hey Charlie,
This is… AWESOME! I’m fairly new to Cloverleaf development so I didn’t know about the XPM commands. Looks like I’ve got some reading to do 😆 I think these will solve a lot of the problems we’ve been struggling against with our e*Gate conversions.
Thank you so much!! 😀
Thomas,
That was actually the original code I used. Technically it works (just like Robert’s code suggestion) but it ultimately gets truncated down to a single component due to the way the variant is built.
I’m going to try Shane’s suggestion, but I suspect that may encounter issues if the lab ever sends sub-components in OBX.#5
I wish Cloverleaf had something like xlateRawVals… something that would allow me to perform TCL fragment code against an un-parsed field, in its entirety.
Oh wait… tried the code on a different field and it worked.
The TCL fragment doesn’t work on OBX.#5 because the variant only has one component (0 String Data). If you put the code in a field with multiple components, it works.
Well that makes things even more complicated.
Quadruple-checked 😆
Source
6(%g1).0(0).OBX(0).#5(0)
Destination
2(0).0(0).1(0).0(%g1).OBX(0).#5(0)
Very odd… The fact that this all takes place inside an iterate shouldn’t effect anything, should it?
Hey Robert,
Thanks for the reply. I gave your TCL fragment a try but, unfortunately, it doesn’t work. If you echo $xlateOutVals, the list is built correctly, but only the first element of the list appears in the message.
Command output:
4.29
12.4 12345
2(0).0(0).1(0).0(1).OBX(0) : >|1|NM|RBC^RBC|1|
4.29|10*6/uL^million per microliter^L||N|||F|||201411110936<2(0).0(0).1(0).0(2).OBX(0) : >|2|NM|HGB^HGB|2|
12.4|g/dL^gram per deciliter^L||N|||F|||201411110936<(The second value should be 12.4^12345)
-
AuthorReplies