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

To load context from excel file

Hi ALL,
As we know, after we predefined the connection setting, we be able to export it as context and talend will stored it as context file. What i'm trying to do now is the way that context(variable defined) as context file, i re-write it into excel file then i wanted to create a job to read/load the context that i've defined in that excel file. Is that possible?
I've tried it, but seems nothing be loaded.
Plz help me. Thanks in advance 0683p000009MACn.png
Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi
Yes, you can load the value of context variables from any data source with tContextLoad component, a simple job looks like:
tFileInputExcel--main--tContextLoad
Please have a look at the component user documentation and learn this component
Anonymous
Not applicable
Author

Hello Shong,
let's say excel file containing context variable for database connection such as host, port, database, table, username and password. these context will load from the excel file using tContextLoad as u said previously but how to pass the context loaded from tContextLoad to connect to mysql database?
Cause i have to connect to database and retrieve the data based on the context variable stated in excel file.
So that, when i want to connect to a different database i just can simply change the host, database, table etc through this excel file.
Could u plz help me.. 0683p000009MACn.png