How to use array in a context

Highlighted
Seven 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.

One Star

Re: How to use array in a context

I hope that the vocation of everyone in all their contemporaries, and a pointer to the data has asserted in this context that one requires. kids book illustrations

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog