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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filter list of files based on content

Hi all, I'm trying to move files with the same name format, but with 2 sorts of xml data. Based on one xml tag, I want to devide those files into 2 different directories. I found a look a like discussion in the old talendforge:

 

https://www.talendforge.org/forum/viewtopic.php?id=44297

 

It looks like what I'm looking for, but I can't get this to work. Is there anyone who can get me in the right direction?

Thanks in advance!

0683p000009Maa7.jpg0683p000009MaaC.jpg0683p000009MaaH.jpg0683p000009MaaM.jpg

 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello,

Please try this code in tjavarow.

on tJavaRow:

if((input_row.content.toString()).contains("your certain string")){

globalMap.put("isContian", input_row.content);

}

set the condition of runIf as:

(Boolean)globalMap.get("isContian")

Let us know if it works

Best regards

Sabrina