Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sekertu
Contributor III
Contributor III

how to apply different values in join as a filter

Hello all,

I am new at Talend, I am trying to develop a job which will have a join in Tmap. While joining two tables a variable is used in the code.

let me explain a bit clearly. You can see my job below.

0693p000009sIwJAAU.png

In the code (after on statement) there is this statement: AND ud.i_usagetypes = %USAGE_TYPE%)

this usage_type has 1,2,3,4,5 values. there is an iteration in the code.

I am not able to find a way in order to apply it to my work.

there should be an iteration but I don't find the solution.

I'd be glad if you help me.

Thanks

sekertu

Labels (3)
2 Replies
manodwhb
Creator III
Creator III

@TUGBA SEKER CAN​ , use the tfixedflow to have the required values and iterate using tflowtoiterate and then connect your rest of the flow and so it will iterate value by value.

 

check the below link to about tFlowtoiterate component.

 

https://help.talend.com/reader/vn0o8XYVXXNgJkRtWjet9A/FFa3Y3_DRo0KOopVtTzPMA

 

Thanks,

Manohar

sekertu
Contributor III
Contributor III
Author

Hi @Manohar B​ ,

I tried your solution it seems it is working.Thank you. But I am not sure whether it affects the second part of the union or not. I wrote the  '" + ((Short)globalMap.get("row1.i_usagetypes")) + "' filter to both side of union. seems iteration finishes before second part starts.