• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] tJavaFlex - multiple rows

#1 2008-12-12 14:24:19

Fabiano
Guest

[resolved] tJavaFlex - multiple rows

I needing return many rows from a tJavaFlex.

There are 2 components in the job: tJavaFlex and tLogRow.
There are 2 colunms in the schema: COD and DESC.


In the tJavaFlex:

Start code: connect to a data base, execute the SQL.

Main code: loop with the result.
row1.COD = return.col1;
row1.DESC = return.col1;

End code: disconnect to a data base


The connection and SQL execute are working very well, but the return of tJavaFlex is just one row (the last row). The result of SQL has many row.
How can I return many rows fom the tJavaFlex?

#2 2008-12-12 19:13:12

mhirt
Talend team
Registered: 2006-09-19
Posts: 1638

Re: [resolved] tJavaFlex - multiple rows

You have to switch the opening loop with the result to begin part
And don't forget to close your loop in end part.

Offline

#3 2008-12-15 11:55:16

Fabiano
Guest

Re: [resolved] tJavaFlex - multiple rows

That it is!

Thank you very much!

#4 2010-12-21 08:52:55

Anindita
Guest

Re: [resolved] tJavaFlex - multiple rows

There are 2 components in the job: tJavaFlex and tLogRow.
There are 2 colunms in the schema: COD and DESC.


In the tJavaFlex:

Start code: connect to a data base, execute the SQL.

Main code: loop with the result.
row1.COD = return.col1;
row1.DESC = return.col1;

End code: disconnect to a data base


I do not know how to connect to an oracle database from tjavaflex.Can you help me?

#5 2011-01-28 23:31:52

Sash
Guest

Re: [resolved] tJavaFlex - multiple rows

Thank you mhirt.

Your solution helped t oresolve my probelm:)

#6 2012-01-03 02:50:16

waniJP
New member
Registered: 2011-01-18
Posts: 6

Re: [resolved] tJavaFlex - multiple rows

Why Error Message Talend Tjava not have function. I can't know what error it appeared. please help me

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] tJavaFlex - multiple rows

Board footer

Powered by FluxBB