How to use array in a context

Six Stars

How to use array in a context

Hello,

 

I would like to use an array in a context but how i can create this ?

 - In a string like "Nike", "Adidas", "Rip Curl" ?

 

Finaly, it's to test if my current value is in my array but all i test not work

 

Do you have an idea ?

Thanks

Ten Stars

Re: How to use array in a context

(new String[] {"adidas","morty","jump", "up","down","picklerick"})

Five Stars

Re: How to use array in a context

I think list of values in context type can be used for that purpose

Four Stars

Re: How to use array in a context

HELLO,
I am using tStatCatcher for capturing the log in a flat file.
and its good!

Tutuapp TextNow  Photomath

One Star

Re: How to use array in a context

Hello developers, I need some guidance on using the multidimensional array?

Ten Stars

Re: How to use array in a context

Single dimension:

(new String[] {"adidas","morty","jump", "up","down","picklerick"})

Multi:

( new String[] { new String[] { "jabadabadoo", "wilmaaaaa" } , new String[] { "rick", "sanchez" } , "morty","jump", "up","down","picklerick"} )

 

Please elaborate on what you're planning to do... and why multi dimension?

 

Community Manager

Re: How to use array in a context

Hi arnaudbroens
Define the variable with string type, and use tNormalize to normalize the value to multiple rows, do an inner join between input data and the predefined values. eg:
tMysqlInput--main--tMap--->tLogrow
                                 |
                            lookup--tFixedFlowInput--tNormalize
on tFixedFlowInput: output the value of context variable

Regards
Shong

----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to use array in a context

The typedef direction is utilized to rename structures. This is done as such that we can allude to structure factors specifically. The past precedent has been changed to utilize a typedef direction. The structure has been given a name called Stud. This variable can be utilized to straightforwardly introduce the information individuals from the structure. We characterize an object of Stud called record, as Nx3corp.com should be obvious showing up in the code beneath.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads