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: 
Anonymous
Not applicable

Iterate over a "List of value" context variable

Hi,

 

For the momentI use a tForeach to loop over a list of e-mails that I write directly into the component settings : 

 

0683p000009Lwww.png

 

Instead of doing that, I would rather store them into an array-like context variable. I've seen this "List of value" type so this is what I've done :

 

0683p000009Lwea.png

 

But I can't find a way to iterate over the values of this context variable.

 

Thanks for the help.

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi
You can store the value in a context variable with string type, like:
email1,email2, email3
In the job, use a tNormalize component to normalize the value to multiple rows, and then iterate each row, eg:
tFixedFlowInput--main--tNormalize--tFlowToIterate--iterate--tPop

Regards
Shong

Anonymous
Not applicable
Author

Hi,

Can you please let me know the use of 'List of Value' datatype in talend.

Actually i need to store multiple values under one variable at single shot and after i have to use any one value in the list at run time.

it's requirement to prepare test data for testing.

Can you please help me to to right choice here.

Regards,
Sankar