Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
EnriqueLDE
Contributor II
Contributor II

Working with Excel in tJava

Hello,

I'm not use to program Excel using Java (i always use Visual Basic) and i recently realized there isn't any tool to program Excel using vba in Talend, instead u have to use tJava. But i have no idea how to program Excel in Talend using Java code. Is there any library to upload or tutorial where i can learn about this?

Thank you!

Labels (3)
3 Replies
akumar2301
Specialist II
Specialist II

Try to re implement your VBA code using Talend components.

Otherwise you could call your VBA script using tJava .

Runtime.getRuntime().exec("wscript yourmacro.vbs");
EnriqueLDE
Contributor II
Contributor II
Author

I need to use conditions like this example:


0683p000009M1xC.png

 

 

 

 

 

 

 

 

If CODE = 1 and ID STATUS = C Then Result = 1C (This is the logic i'm looking for, but i don't know how to do this using tJava or Talend components)


Capture.PNG
akumar2301
Specialist II
Specialist II

Read input (1st two cols) --> tjava ( create 3 column col3=col1+col2) --> thashoutput ( only col3)

 

on subjob ok

 

thashinput(Only col3) --> excel file output ( write only 3rd column on same excel and same sheet in append mode from position C2)

 

Hope this will help to understand how these components works. There are many custom excel component on Exchange portal. if you need to work a lot on excel those also might be useful.

 

0683p000009M1xH.jpg


TalendSolution_2.JPG