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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Access the results of tOracleInput in another tOracleInput

Hi,
first I do a select on one table:
select id, edition, relasedate from print;
Next there is a reference table to query BUT with the results from the first query:
select srctable, desttable, detid from refs
WHERE srcid = FIRST_STATEMENT.id;
And I've got another two or three tables to query.
So, it's a join - but I need the results of the previous query for the where clause.
How can I do it in talend?
Thank you in advance.
Bye, Chris
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
I solved it on my own.
I just didn't know that I can use the Var in the middle of tMap.
The way I did it wasn't working (see screenshot)
Thank you 0683p000009MACn.png
Bye, Chris

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hello Chris
You can use the tFlowToIterate component, eg:
tOracleInput_!--row1-->tFlowToIterate-->tOracleInput_2-->do other transcation
On tOracleInput_2, type in the query like this:
"select srctable, desttable, detid from refs
WHERE srcid ="+(Integer)globalMap.get("row1.id")
Best regards

shong
Anonymous
Not applicable
Author

Thank you Shong it works.
But I need a to have two values from tOracleInput_1 in my tMap1.
I want to have values from tOracleInput_1 AND tOracleInput_2 in my tfileOutputExcel_1.
Unfortunately I can't access globalMap.something or row1.something in tMap 0683p000009MPcz.png
What should I do now?
Bye, Chris
Anonymous
Not applicable
Author

Hello
Please decribe your problem more detailed, where/why do you say you I can't access globalMap.something or row1.something in tMap? a screenshot of tMap will be better.
Best regards
shong
Anonymous
Not applicable
Author

Hi,
I solved it on my own.
I just didn't know that I can use the Var in the middle of tMap.
The way I did it wasn't working (see screenshot)
Thank you 0683p000009MACn.png
Bye, Chris