You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

hello, i need to use if then else in tMap component and what i know is only if else condition. how to use if then else in talend?
and how to separate string if it goes like this (abcd, efgh, ijkl, mnop) then i want to separate it for different element but in the same loop (btw, i use it for tAdvanceXMLOutput later)
from this form:
<root>
<book> abcd, efgh, ijkl, mnop</book>
</root>
so it will goes like this:
<root>
<book number = "1">abcd</book>
<book number = "2">efgh</book>
<book number = "3">ijkl</book>
<book number = "4">mnop</book>
</root>
thank you
Offline
Hi
On tMap, you can use the if ...else logic like:
condition1?value if true:(condition2?value if true:value if false)
Before generating the XML file, using tNormalize is to separate one row to more rows.
Best regards
Shong
Offline

shong wrote:
Hi
On tMap, you can use the if ...else logic like:
condition1?value if true:(condition2?value if true:value if false)
Before generating the XML file, using tNormalize is to separate one row to more rows.
Best regards
Shong
thanks for the answer
can you tell me how to use tNormalize?, can i combined it with tMap?
Offline
Hi
Here is a scenario showing how to use tNormalize component.
Best regards
Shong
Offline
Pages: 1