Originally posted by: SystemAdmin
Thanks for the help. I'm just so used to being able to do this sort of thing in Java and other languages and knew either TX wasn't able to do it or I was doing something wrong. I figured TX probably couldn't do it and that I would have to come up with another solution. Thanks for the multi-card solution Jim.
rmcfate, I also would like to know more about how you test the output of a functional map in an if statement. Does the output have to be a single text field or something to that effect?
One other feature I really wish was there is a way to do a case statement on a value. Say if I call a functional map to return a value and then test that value against multiple conditions. i.e.
code:1:754ca92e98=Case(f_map(SomeObject),
="1","ThisValue",
="2","ThatValue",
="3","NoValue",
...
nCondition,nResult)[/code:1:754ca92e98]
or maybe...
code:1:754ca92e98=IfCase(f_map(SomeObject),
{="1",="2",="3",...,nCondition},
{"ThisValue","ThatValue","NoValue",...,nResult)[/code:1:754ca92e98]
I know the syntax is crappy, but it would be nice so you didn't have to nest if statements and re-evaluate f_map each time.
Now I bet I have gone and shown myself for the noob that I am on TX.
___________________
"Better to keep one's mouth shut and be thought a fool, than to open it and remove all doubt." -Mark Twain
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange