Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Javascript variable persistance between rows

  1. #1
    Join Date
    Mar 2006
    Posts
    9

    Lightbulb Javascript variable persistance between rows

    Hello,

    I have a input step that produces a few hundred rows. A particular column is null on certain rows. I would like to assign a value to this column from the last row that did not have a null value in that column.

    Is there a way to do this in a transform? I was thinking of using the "Modified Java Script Value". However, it seems that the variables do not live between row instances.

    Any ideas?

    Thanks
    Nikh Nath

  2. #2
    Join Date
    Jul 2007
    Posts
    1,013

    Default

    Nice timing! I had to tackle that problem yesterday.

    I'm attaching an example.

    Cheers!
    Attached Files Attached Files

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.