Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Modified Javascript Script capability

$
0
0
I am working on a JavaScript step that will be able to determine if key fields are missing from the data source regardless if it is a database, text file or Excel. The action that I want to step to take is add the column if the field (column) is missing.

I know that I can get for the existence of a column using
var rtn = getInputRowMeta().indexOfValue("Column_name");

As I rotate through all of the fields, the steps repeats for each row from the dataset. Is there a way that I can check for the existence of more than one field within a set of data rather than examine for each row?

I am trying to learn more how to incorporate the API sets and I am uncertain which set I should check. Help would be very much appreciated.

Thanks
Ray

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>