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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Context Variable

HI Team,

 

I am having a doubt in passing value to context variable.

I am having a context variable named "I_From" which is of string type and i am giving dafault value as "2018-01-01"

Also Using the Implecit tContextLoad setting and am giving the filepath in which a file is placed.

In that file also am passing some values to the context variables, One of the context variable in that file is the same "I_From" .

 

My doubt is for the same variable the value is passed from file and also the default value assigned in context view,which value will be taken whether from file or value assigned in Context view.

 

NOTE: I checked the above scenario, for me it is taking the value from file eventhough it is assigned in context view, if the variable is not present in file then only the value from context view is taken.

 

Please clarify the above scenario.

 

Thanks-

Gayathri S

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Gayathri,

 

     The default values which you are assigning in the context view will be always replaced by the new values you are giving using Context load or through other components like tjava,tjavarow etc.

 

     The value in the context view will be assigned during the starting of a Talend Job. But during any point, if the value is being replaced by any means, the new value assigned in between your program will be the value for your context variable.

 

      Throughout the program if you are not modifying the value, the the original value in context view will be still available for usage.

 

       Hope I have answered your query 🙂

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

 

 

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi Gayathri,

 

     The default values which you are assigning in the context view will be always replaced by the new values you are giving using Context load or through other components like tjava,tjavarow etc.

 

     The value in the context view will be assigned during the starting of a Talend Job. But during any point, if the value is being replaced by any means, the new value assigned in between your program will be the value for your context variable.

 

      Throughout the program if you are not modifying the value, the the original value in context view will be still available for usage.

 

       Hope I have answered your query 🙂

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

 

 

Anonymous
Not applicable
Author

Hi Nikhil,

 

Thanks for the reply.