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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use Trigger Run If

How can I use trigger Run If in my application.I am using tReplicate to replicate data into n nuber of branch. I want branches should be executed on certain condition.

Labels (2)
18 Replies
Anonymous
Not applicable
Author

I am unable to understand that post. Please see image attached. after tReplicate job should be executed on certain condition.
Anonymous
Not applicable
Author

Hi shaky,
Have you considered putting tFilterRow components after your tReplicate? Your branches could then be executed based on certain conditions on your data. It is not an all-or-nothing-run-if component, but a per-row-run-if component.
Daniel
Anonymous
Not applicable
Author

How can I execute all or nothing condition...
alevy
Specialist
Specialist

You can't. As I suggested in the post I referred you to, the best you can do (other than filtering) is to use a tHashOutput or tFileDelimitedOutput instead of tReplicate and then have a series of RunIfs with your condition from that output component to a corresponding input component.
Anonymous
Not applicable
Author

how to set if condition..in your image its If(order:1). how did you set that? order is field in schema?
alevy
Specialist
Specialist

Right click on a component and select Trigger > Run if. Then click on the If link and in the Component tab, type your boolean expression e.g. context.ExecutePath==1. Click on the link again to name it with something meaningful.
The displayed order of the If conditions is the order they are executed. That order defaults to the order you create them but you can right-click on any of them and "Modify If links order".
Anonymous
Not applicable
Author

I want to read properties files along with my job running and frpm properties files i want value to check condition. how can I use contextload along with my job
alevy
Specialist
Specialist

Read the help on tContextLoad, which sets out an example of how to read properties from a file and apply them in a job. Then simply reference the context values in your RunIf expressions.