Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
JDuflot
Contributor II
Contributor II

Printing input_row.name in a tJava

Hello, 

I'm new to Talend and I've been struggling with using input_row values in a tJava component.

When I get a value from an input_row and want to System.out.print(input_row.name), it always replies null even if i can see it in a tLogRow right before.

That means I can not even use them in a bloc of code. Is there another way to get values from input_rows ? 

I can provide screenshots if needed, but my test job is pretty simple : tRestClient - ExtractJsonFields - tLogRow(where i can see the values) - tJava (where input_row.name is always null).

Thank you for your help.

 

Jean

Labels (2)
1 Solution

Accepted Solutions
Shicong_Hong
Support
Support

Using tJavaRow instead of tJava component, you can find the difference between tJava and tJavaRow in this KB article

Regards

Shicong

 

View solution in original post

2 Replies
Shicong_Hong
Support
Support

Using tJavaRow instead of tJava component, you can find the difference between tJava and tJavaRow in this KB article

Regards

Shicong

 

JDuflot
Contributor II
Contributor II
Author

That worked for me, thank you !

Jean