#1 2011-02-15 08:08:55

vcrarunk
Member
Registered: 2010-12-30
Posts: 11

row generation

hi,
my scenerio is i need to generate rows of 20 customers.
in that i need 12 male & 8 female customers.
then customers has to be distributed based  on some location.
i.e out of 12 male customer  9 have to come from newyork and rest from london.
can i use tRow generator for this if yes,then  how can i use it .. r s ther anyother component that i should use for my scenerio.
thanks in advance!!


Regards,
Arun

Offline

#2 2011-02-15 08:54:05

shong
Talend team
Registered: 2007-08-29
Posts: 10353
Website

Re: row generation

Hi Arun
Yes, you can tRow to generate rows, but the existing function don't satisfy you logic, you need create custom routine, and call it on tRow.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2011-02-15 11:08:23

vcrarunk
Member
Registered: 2010-12-30
Posts: 11

Re: row generation

thanks Shong !!i ll use trow for row generation
but were can i mention my custom routine in talend.. how can i call it from from tRow Generaor???

Regards,
Arun

Offline

#4 2011-02-15 12:35:38

shong
Talend team
Registered: 2007-08-29
Posts: 10353
Website

Re: row generation

Hi Arun
Go to repository-->code-->Routines and create a custom routine, select ''..." on function column on tRowGenerator and set the value as:
RoutineName.methodName (see my screenshot)

Best regards
Shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2011-02-15 12:42:33

vcrarunk
Member
Registered: 2010-12-30
Posts: 11

Re: row generation

hey thanks shong!!! this ll be very useful to me !!!!

Offline

Board footer

Powered by FluxBB