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

global variable in tLoop

Hi,
I use Talend 3.0.2 + java.
I declare "start=1" with tSetGlobalVar and I would like to start my tLoop with i=start.
I put "int i="((Integer)globalMap.get("start")) in tLoop declaration but I receive error in code: Start cannot be resolved.
It is a little weird because I use it in some components later and error doesn't occur.
Could anyone tell me what I am doing wrong, please?
Thanks in advance.
Kind regards,
Marcin K.
Labels (3)
13 Replies
Anonymous
Not applicable
Author

Hi, pramodh
Could you please open a new topic for your job requirement? In addition that, please give us more description about your requirement.
Elaborating your case with an example with input and expected output values will be preferred.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi ,
To accomplish my task i can use either global variable concept or context variables. So explain me the both concepts
My task is to extract the records from a table which is having inserted date greater then the value stored in the global variable/context variable.
for example consider customer table having
txn_id number
cid varchar
pid varchar
saledate timestamp
upon each run of talend job the max(saledate) must be stored in the global variable /context variable and i have use that max(saledate) in the query as
"select * from customer where saledate>"
Anonymous
Not applicable
Author

Hi,
How can pass my tjava component variable to tmap which means i have to access the variable which is in tjava to tmap. can any one one help me
Anonymous
Not applicable
Author

hi all,
please, as Sabrina 's asked, open new topic for your own purpose & request ?
regards
laurent