- This topic has 1 reply, 2 voices, and was last updated 15 years, 4 months ago by .
-
Topic
-
Hi all. I know it is far fetched but I would like to hear if any one tried something like this.
Problem at hand:
key/value pairs coming in incoming OBX message.
I have a lookup table to identify a key and returning fieldNumber for my Z segment.
I know that conventional metod to do next step is, to create an if statment and then store value.
Which is a big issue if you can recieve large number key/value pairs
Question:
Is any one managed to dynamicaly generate a destination field in Xlate that was derived from variable?
key|value
color|red
shape|circle
location|aruba
table mapping
color -> 1
location -> 2
shape -> 3
result should store
color value in ZF.#1.[0]
location value in ZF.#2.[0]
shape value in ZF.#3.[0]
{ OP COPY }
{ ERR 0 }
{ IN @value }
{ OUT {{0(0).ZF.#@retval.[0]}} }
Thanks.
Alex
- The forum ‘Cloverleaf’ is closed to new topics and replies.