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: 
PhilHibbs
Creator II
Creator II

Populating a flow from an array

I have an array of strings, and I want to execute each of them in turn in a tHiveRow component. How can I make each string element a row in a flow?

 

I have seen this: https://community.talend.com/t5/Design-and-Development/JSON-Array-values-to-Rows-is-there-a-better-w...

That's fine if you've got your strings in JSON, but I don't, they are in a Java array. I suppose I could write them into JSON and then extract them out but that seems a bit hacky.

Labels (2)
1 Reply
Anonymous
Not applicable

Hi
My idea is to remove the characters "[","]" from the array string, and then normalize the string to each item, iterate each item and execute it in tHiveRow, the job looks like.
....output array sting--tJavaRow--tNormalize--tFlowToIterate--iterate--tHiveRow

Regards
Shong