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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMap: using List as Column Type

Hello, 

 

In a tMap component, I want to add a column to the output containing an array of pre-defined strings. So I add a column, set the Type to List, and then add comma-separated strings in the expression editor. I've tried this in various ways, but continue to get errors. And I can't seem to find info about this from searching.

 

Can someone please tell me how to create the effect of an array as a column in tMap?

 

Thank you, 

Dave

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thank you for your response. 

What I really want/need is a JSON array.

I solved my problem by using tWriteJSONField:

https://help.talend.com/reader/Btf8zDsnT4ikhQgFW1plpQ/68ie9Fe1gNc_JNy~7zjIbg

 

along with this info on how to configure a JSON tree, with info on configuring for an array

https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/oriVV6vn5bDr9YFigtRMkg

 

Thanks again for your response

View solution in original post

2 Replies
fdenis
Master
Master

list type is String type with a predefined list of content.
use String with a separator not list .
regards
Anonymous
Not applicable
Author

Thank you for your response. 

What I really want/need is a JSON array.

I solved my problem by using tWriteJSONField:

https://help.talend.com/reader/Btf8zDsnT4ikhQgFW1plpQ/68ie9Fe1gNc_JNy~7zjIbg

 

along with this info on how to configure a JSON tree, with info on configuring for an array

https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/oriVV6vn5bDr9YFigtRMkg

 

Thanks again for your response