Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to get Collection of Input fields in Modified Javascript Option.

  1. #1

    Default How to get Collection of Input fields in Modified Javascript Option.

    Hello,

    I need to apply javascript processing to a file containing 40 or 50 columns. Now How do i get the collection of input fields in Modified Javascript Option. I can not apply seprate processing to each column else code would be a mess. I need to iterate over each column of input column collection and apply same processing logic to value of that column. So how to get that collection? is there any way?

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    If you cannot read in the file with text file input, csv input, ... you're probably better off not using PDI to process your file.

    If you can... just read in the file, move the rows to a javascript step and there you can then do stuff on your columns.

    Regards,
    Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.