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.
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
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>"