TsplitRow

Highlighted
Six Stars

TsplitRow

Hi Team

 

Generally in tsplitrow component to display records between 1 to 5 we write the string as "1..5"

can we use context variables for the same if so how?

i am trying to pass as follows

context.prev_count+".."+context.rowcount

but it is throwing me the error

Please correct me

 

Thanks in advance.

Deepthi

Highlighted
Eight Stars

Re: TsplitRow

What error you are getting?
Highlighted
Six Stars

Re: TsplitRow

Hi

 

I have attached the error

 

Please Check

Thanks

Highlighted
Eight Stars

Re: TsplitRow

Change the datatype of context.prev_count & context.rowcount to String in Context view.

Also it seems ,you are trying to split context.rowcount. Use context.rowcount.split(",")[0] where 0 is position of spiltted string.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog