Count rows in a table

Hallo friends,

is it possible to count the rows in the table in a java script, if yes, how?

Thanks

Götz

Currently you can’t do it from inside the Javascript transform. But there are other ways. For example you can add it as an extra column using meta information during file input.

image

It is on our wishlist to add a more powerful version of the Javascript transform in a future release.

Thank you vor your help, I have found a better way, Dedupe / exact / case incentive / add duplicate information, it will numbering all rows unique. It is good idea to add more function to java, may be a include function?

Götz

If you just want a unique row number, then use the Row Num transform.