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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
DrGenious
Creator
Creator

Iterating column names

Hey, 

 

Is there anyway to iterate column names ? 

Basically I want to parse this code into talend. As you can see fieldName is a variable who goes through column names and when it is compliant it parses its value into r variable.

 

if (fieldName.equalsIgnoreCase("ip")) {
r = fieldValue;
}
else if (fieldName.indexOf("submask")>=0 ) {
r = fieldValue;
}
else if (fieldName.indexOf("mac" ) >=0){
r= fieldValue;

}

 

Please help me. Thanks a lot 0683p000009MACn.png

Labels (2)
2 Replies
TRF
Champion II
Champion II

From where are you getting column names?
Give an example.
DrGenious
Creator
Creator
Author

@TRF 

 

Thanks for your quick response.

This is only what i have. If it doesnt help, its ok . I create a tfileinputdelimited with the column names ip, submask and mac but I dont know how to make the search with the column names in order to parse the column's value into r.