Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Javascript library

  1. #1

    Default Javascript library

    Hello,

    can i import an external file javascript in 'java script'(kettle)?


    Thanks in advance.


    Ciao,
    Roberto

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

    Default

    For the moment not I think.

    Regards,
    Sven

  3. #3
    DEinspanjer Guest

    Default

    Well, you can sorta, but there is a small hoop you currently have to jump through.

    The LoadScriptFile() method doesn't support the HTTP protocol. The copyFile() method does however, so you can copy an HTTP file locally (say in your tmp directory) and then load the script and invoke methods from it.

    I think it is simply an oversight that LoadScriptFile() doesn't support VFS. I'll take a quick look at that in trunk and see if it is easy to fix.

    Attached is an example of what I described above.
    Attached Files Attached Files

  4. #4

    Default

    DEinspanjer, you are a rockstar

  5. #5
    Join Date
    Sep 2010
    Posts
    133

    Default

    Hi.
    I have many trasformations in my job and I need to call in every transformation a .js file.
    But I want to call it once.If it is possible in parental job.
    How can I do?

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.