Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Nad_s
Contributor II
Contributor II

Split String[] in multiple row using tjavarow

Hi,

I would like to split a String[] in a tjavarow without using tNormalize.

tfixed ---1Row---> tJavarow ------3rows--> tLogRow

For exemple intput_row =

String[] s = ['S','Z','P']

at the exit of the tJavarow I would like to have 3 lines:

Row1 = S

Row2 = Z

Row3 = P

Labels (3)
3 Replies
Anonymous
Not applicable

Hello,

Please have a look at this related topic about:

https://community.talend.com/s/feed/0D55b00006f3mkvCAA

Feel free to let us know if the solution works for your use case.

Best regards

Sabrina

Nad_s
Contributor II
Contributor II
Author

This solution use a tNormalize... in my case it is not the way I want it to work

Anonymous
Not applicable

tJavaRow process data line by line, and it can't output multiple rows. My idea is that convert the string array to a string (eg: s=S,Z,P) on tJavaRow, and store the string to a context variable or global variable, then you can use tNormalize to split the string to multiple rows in next subjob.