For Loop List of Values

One Star

For Loop List of Values

How to pass a list of values from a Input component to a For loop. Say for example, I have a list of values from a Input DB component and I want to perform some set of operation for each row item returned from the input component.

Is For Loop the right option for this approach.

DB Input Component(return rows of item names) -> For Loop -> Perform few operations of each item
One Star

Re: For Loop List of Values

Use tFlowToIterate after your DB Input to process each row.
One Star

Re: For Loop List of Values

I just figured it out after asking the question. Thanks.

But that still doesn't answer the question, how we can pass a list of values to a loop component.
Community Manager

Re: For Loop List of Values

Hello
But that still doesn't answer the question, how we can pass a list of values to a loop component.

What's your next operations for each item? after tFlowToIterate component, we can get the current item via global var, for example:
tDBInput---row1--tFlowToterated_1---iterate-->tJava
on tJava:
Sting itemName=(String)globalMap.get("row1.itemName");

Please describe more info about your request, so we can give your more precise response.


Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog