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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using an arraylist to populate output

Hi all, I'm in the following scenario:

0683p000009M96o.png0683p000009M8z5.png

Now I can't actually find a way to use my list output and no values are actually printed by tLogRow, though printing values from globalMap and row79 inside the tJavaFlex itself works fine.

I both tried using row79 -- Main -- out and globalMap -- onComponentOk -- tFixedFlowInput -- out.

In the first case I just get blank values in output, in the second case i can pass the arrayList to a value and can't proceed any further to store all values from the list inside columns for a possible output.

 

Any help much appreciated!

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I managed to find a solution:

0683p000009M903.png

The missing piece of the puzzle was the tLoop from 0 to ((java.util.List<String>)globalMap.get("key")).size()-1

tFixedFlowInput: ((java.util.List<String>)globalMap.get("key")).get((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))

For some reason the elaboration is looking pretty slow (only 40rows/s) but at least it works!

View solution in original post

1 Reply
Anonymous
Not applicable
Author

I managed to find a solution:

0683p000009M903.png

The missing piece of the puzzle was the tLoop from 0 to ((java.util.List<String>)globalMap.get("key")).size()-1

tFixedFlowInput: ((java.util.List<String>)globalMap.get("key")).get((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))

For some reason the elaboration is looking pretty slow (only 40rows/s) but at least it works!