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

run if

hi, 

i have this job 0683p000009M1a4.pngand i have this result0683p000009M1ba.png

 

 

and i want to send mail if he see "A" in the last column, but here he just takes the last line in the last column ( it's "B") and the answerof the run if is "B".

Thanks for your answer 0683p000009MACJ.png

Labels (1)
  • v7.x

3 Replies
Anonymous
Not applicable
Author

Use a tFlowToIterate after the tLogRow. Then connect that to a tJava using an iterate link. After the tJava, use your RunIf. The RunIf logic should be based on a globalMap value. This is because the tFlowToIterate component will convert your data row to globalMap values. The key to each column will be the row name feeding into the globalMap and the column name. So, if your column is a String and is called "MyValue" and your row is called "row3", your globalMap value will be accessed like below....

 

((String)globalMap.get("row3.MyValue"))

Your previous method did not work as the RunIf fires after the component has finished. By adding the tFlowToIterate, it means the subsequent components both start and end with each iteration. This means your RunIf will be tested for every row.

Anonymous
Not applicable
Author

@rhall  we use that in tJava?

((String)globalMap.get("row3.MyValue"))

 

 

Anonymous
Not applicable
Author

No, the tJava should be left empty. The globalMap code I gave you simply shows you how to access the column value for your RunIf logic.