cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for Total Lines

Former Member
0 Kudos

Hi Masters,

Please any body give me UDF Code for Total Lines.

Thanks!

Regards,

SReddy

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Try this out

take a record node(in which actual records are present) from source

record ---> count( std function from statistic function group) ---> target total field

this function will count no of time record is occurring in message..

hope this helps

prabhu_s2
Active Contributor
0 Kudos

DO U MEAN THE TOITAL NUMBER OF RECORDS IN THE MESSAGE? if this is the case dont go for udf. u can have them using the count f/n in grpahical mapping

Former Member
0 Kudos

Yes, You are right..

Thanks!

Regards,

SReddy

prabhu_s2
Active Contributor
0 Kudos

u can read the doc for count on how to use it. this shud help you

justin_santhanam
Active Contributor
0 Kudos

Hi,

See for example if your structure looks like the below

<Recordset>

<Row>

<Fname>J</Fname>

</Row>

<Row>

<Fname>K</Fname>

</Row>

<Row>

<Fname>L</Fname>

</Row>

<Row>

<Fname>M</Fname>

</Row>

<Row>

<Fname>N</Fname>

</Row>

</Recordset>

If you want to count the row then ,

Row[Change context to higher level]----->COUNT--


>Target

Hope it helps you!!

Best regards,

raj.

justin_santhanam
Active Contributor
0 Kudos

Hi,

Can u be more specific.

Best regards,

raj.