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

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

passing multiple queries to tOracleRow

Hi,
I want to iterate through 40+ SELECT statements currently held in an Excel spreadsheet..pass them to an OracleRow ....and output the results to another excel spreadsheet. Appending the results of each SQL statement to the end.
I currently have a job with a tFileInputExcel and tOracleRow component. I want to pass each SQL statement (held in one column in one sheet) into the query of the tOracleRow.
Any guidance would be great. I think I need a parameter / variable just cant see how to set it all up.

Regards,
Michelle
0683p000009MD2m.jpg
Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi,
For your use case, you use TalendHelpCenter:tContextLoad component to achieve that.
To make it clear, I have designed a demo job for you.
The workflow should be: tfixedflow(tfileinputxxx)-->tcontextload-->oncomponentOk-->tMysqlinput-->tfileoutputxxx
Please see my screenshots for details

Best regards
Sabrina
0683p000009M5vH.png 0683p000009MDJC.png 0683p000009MDJH.png
willm1
Creator
Creator

How about this?
See the screenshots... The tJava is just a way to expose the row so you can use it in tOracle... And the schema of the Excel Spreadsheet is a single column named 'SQLScript' which holds the text of the SQL query from every row in the spreadsheet.
0683p000009MDJM.png 0683p000009MDJR.png 0683p000009MD4T.png 0683p000009MD9r.png
Anonymous
Not applicable
Author

Hi,
Is there any update for your topic? Is the solution satisfying your needs?
Best regards
Sabrina