tJavaRow component code for Excel

Five Stars

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!

 


Accepted Solutions
Eleven Stars

Re: tJavaRow component code for Excel

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.

Francois Denis

Tag as "solved" for others! Kudos to thanks!


All Replies
Eleven Stars

Re: tJavaRow component code for Excel

hi, why dont you rear excel file using tfileInputExcel?

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Five Stars

Re: tJavaRow component code for Excel

@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!

Eleven Stars

Re: tJavaRow component code for Excel

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.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Highlighted
Eleven Stars

Re: tJavaRow component code for Excel

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

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.