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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
thomas_ciampagl
Contributor
Contributor

Reference Projects and Contexts

Hello.  I am very new to Talend and trying to create my first "real job" for a client project.  I am trying to follow the best practice of using a reference project, but I'm not clear on how to use the reference project specifically as it relates to contexts.  Here is my situation:

I am creating a job that will pull data from an application database (each client will obviously have it's own DB with it's unique set of credentials).

I have a job that will be used by all of the clients, so I put it in a reference project.  It pulls some data from the application DB and adds it's to a separate DB used with my Talend project.  I created metadata for both DBs using context variables.  I tested it with some generic test DB I had.  All good so far.

Now, I assumed when I went to use this job against a client DB, I'd be able to change the context variables to match the DB I'm using in the Talend job that's using the reference project, but they are all greyed out.  So, I'm confused.  I don't see how to create useful reference project without contexts but I can't figure out how to modify the contexts in the main job (without putting client specific info in the reference project). 

Can someone please help me understand how to properly use reference jobs and contexts harmoniously?

 

Thanks,

Tom

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

@thomas.ciampagl  

 

I asked same question refer to my post "Dynamic calling to oracle databases on different servers" but looks like there is no way to use two context variable group in same job and same component. It has to be two separate jobs or components.

View solution in original post

2 Replies
manodwhb
Champion II
Champion II

@thomas.ciampagl ,referenced project you can not change the contexts,since you need to configure in  the original code for the new contexts and then you can execute that code with specified context group.

 

with out modifying the code in the referenced project you wan to do means you need to copy the code into your own project from referenced and do the required modifications in code.

Anonymous
Not applicable

@thomas.ciampagl  

 

I asked same question refer to my post "Dynamic calling to oracle databases on different servers" but looks like there is no way to use two context variable group in same job and same component. It has to be two separate jobs or components.