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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Daemon_demon
Contributor III
Contributor III

Using context Variables in DQ

Hi,

I am using talend Data Fabric in which i am creating a Job in DI to run my DQ analysis using tDqreportrun component.

I am using context variables in DQ as data filter.

Is it possible to change the value of that context variable at run time using DI and use it in DQ.

Thanks!!

Labels (4)
1 Solution

Accepted Solutions
Daemon_demon
Contributor III
Contributor III
Author

I found the answer !

 

Turns out , we can access the context variables across DI and DQ.

 

I was setting the context variables as context.Var = "New Value", as this(context-var) is stored in a temporary storage , the DQ rules were not taking the updated values but were taking the values which were defined at the start of the Job.

 

Instead of context.value = "Value", You can use context.setProperty(<context-var-name>,<updated value>).

 

That should do the trick !

 

 

View solution in original post

3 Replies
Daemon_demon
Contributor III
Contributor III
Author

Please note :

 

I do have the same variable which i am using in DQ, i am updating it's value in runtime , but the DQ is not taking the updated value , but only taking the value of the variable which was defined statically {If the original value is blank, it is taking blank}

Daemon_demon
Contributor III
Contributor III
Author

I found the answer !

 

Turns out , we can access the context variables across DI and DQ.

 

I was setting the context variables as context.Var = "New Value", as this(context-var) is stored in a temporary storage , the DQ rules were not taking the updated values but were taking the values which were defined at the start of the Job.

 

Instead of context.value = "Value", You can use context.setProperty(<context-var-name>,<updated value>).

 

That should do the trick !

 

 

Anonymous
Not applicable

Hello,

Great you got the answer and thanks for sharing it with us on community.

Best regards

Sabrina