Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Error in Job-Javascript

  1. #1

    Default Error in Job-Javascript


    I have spent my version 2.5 to 3.0 updating the database and I see that now I get this error in the footsteps "JavaScript" of "Job":

    Could not compile javascript: org.mozilla.javascript.EcmaError: TypeError: Can not call method "getInteger" of undefined (<CMD> # 1)

    My code is:
    var Lang = rows[0].getInteger("exist_languaje", -1);
    Lang > 0

    He tested the method getNumber but I think this is not.

    They could tell by that method was replaced getInteger(#var#, -1) in this new version?
    Note .- The tips of the documentation folder this method is accepted as valid if I mention this part of the documentation must also be changed.
    Last edited by Blue_box; 08-12-2008 at 08:10 PM.

  2. #2
    Join Date
    Jul 2007


    What you're trying to do looks completely strange to me. If you're using PDI 3.x please keep in mind that the API changed a lot between 2.5.x and 3.x.

    Take a look at the JavaScript migration guide, this might help a lot!


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.