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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (2)
4 Replies
Jesperrekuh
Specialist
Specialist

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

Anonymous
Not applicable
Author

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

Jesperrekuh
Specialist
Specialist

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?

 

Anonymous
Not applicable
Author

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