Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: javascript function

  1. #1
    Join Date
    Sep 2010
    Posts
    133

    Default javascript function

    Hi
    I made a javascript function in a Modified Java Script Value into a transformation.
    But probably i will need it in other trasformations on linked jobs...what can I do??

    thanks!!!

  2. #2
    Join Date
    Sep 2009
    Posts
    810

    Default

    Hi there,

    You could put your function into a file and load it using the LoadScriptFile() function in the transformations that need it. Right click the LoadScriptFile function in the Special functions section to get a sample. You'd have to put the loading into a start script to avoid loading it on each row. This article might help you with this:
    http://type-exit.org/adventures-with...entaho-kettle/

    You could also consider writing a Sub-Transformation that your transformations use to do the common processing. This article might help you with that:
    http://type-exit.org/adventures-with...-k-a-mappings/

    Cheers

    Slawo

  3. #3
    Join Date
    Sep 2010
    Posts
    133

    Default

    Thank you very much.
    Now I'm trying to di something

    Bye!!

  4. #4
    Join Date
    Sep 2010
    Posts
    133

    Default

    Thank you very much, it works!!!!



  5. #5
    Join Date
    Sep 2009
    Posts
    810

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.