Skip to main content
Announcements
Qlik Acquires Upsolver to Advance Iceberg Solutions: READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sushantk19
Creator
Creator

How to pass multiple values to a context

Hi,

 

Is there a way we can define & pass multiple values to a context? e.g

 

context.brand_id=(1,2). how to define this in contexts tab? context.brand_id= "1|2"?

Labels (2)
26 Replies
manodwhb
Champion II
Champion II

@sushantk19 , you need to use the below way. since productcategory_id is a string data type.

 

Load_data.productcategory_id.equas(context.prodcat_mia1)

sushantk19
Creator
Creator
Author

No productcategory_id is INT not string.

sushantk19
Creator
Creator
Author

No productcategory_id is INT not string.

manodwhb
Champion II
Champion II

@sushantk19 , when you are reading parameters ad iterating record by record, you can use the global variable of tFlowtoIterate component. and One more thing that in your job you can connect tflowtoiterate and tDBInput using iterate.

 

((String)globalMap.get("row13.download_file_name"))

manodwhb
Champion II
Champion II

@sushantk19 , when you are reading parameters ad iterating record by record, you can use the global variable of tFlowtoIterate component. and One more thing that in your job you can connect tflowtoiterate and tDBInput using iterate.

 

((String)globalMap.get("row13.download_file_name"))

sushantk19
Creator
Creator
Author

ok it is working fine now. thanks for your help. one more query how to implement the below?

 

prodcat_mia1;7 OR
prodcat_mia1;8

 

How to implement OR logic in context file? Sequential logic is working fine now.

sushantk19
Creator
Creator
Author

ok it is working fine now. thanks for your help. one more query how to implement the below?

 

prodcat_mia1;7 OR
prodcat_mia1;8

 

How to implement OR logic in context file? Sequential logic is working fine now.