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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tJavaRow column loop

hello, I wonder how to do a tJavaRow column name loop.

for example, used for(int i=0;i<3;i++){}, while(){}

 

this is my tJavaRow code part.

for (java.lang.reflect.Field field: row2.getClass().getDeclaredFields()) {

columnName = field.getName();

ouput_row.columnName = input_row.columnName+"text" (x) ← how to do a tJavaRow column name loop

}

 

help me

Labels (4)
3 Replies
vboppudi
Partner - Creator III
Partner - Creator III

I think you can try with tJavaflex component.

 

Regards,

Anonymous
Not applicable
Author

How do use output_row and input_row with tJavaflex?

Anonymous
Not applicable
Author

You just use the input row name and the output row name. So if row1 is the input, use row1. If row2 is the output, use that.