Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
EnriqueLDE
Contributor II
Contributor II

tJavaRow component code for Excel

Hello,

 

I'm trying to read some columns from my Excel file using tJavaRow component but I don't know the code to do this.

 

Designer:

tFileInputExcel -> tJavaRow -> tFileOutputExcel

 

I ask it because later I will continue doing more stuff using this component, but I won't be able to do this if I don't read those columns first.

Thanks!

 

Labels (3)
1 Solution

Accepted Solutions
fdenis
Master
Master

you have to use org.apache.poi components and file Output stream.
it's not so complex but it's code not visual programming...
ETL jobs have to be easy to read… so prefer to use components if you can.

View solution in original post

4 Replies
fdenis
Master
Master

hi, why dont you rear excel file using tfileInputExcel?
EnriqueLDE
Contributor II
Contributor II
Author

@fdenis I use tFileInputExcel to read those columns but i want to use tJavaRow later to work with those columns using code. The problem is I don't know the reference i need to use in Java to start programming. For example, what is the code to refer to colum 1? 

Thanks!

fdenis
Master
Master

you have to use org.apache.poi components and file Output stream.
it's not so complex but it's code not visual programming...
ETL jobs have to be easy to read… so prefer to use components if you can.
fdenis
Master
Master

Talend use apache.poi so you can have a look on code tab when you are using tFileInputExcel… for examples.