Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: implicit objects in javascript

  1. #1

    Default implicit objects in javascript

    what are the implicit objects available in javascript?


    regards,
    bhuvana

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

    Default

    I guess you mean "row", "_step_", the columnnames.

    In the modified javascript also "_TransformationName_"

    and in v3 also "rowmeta"

    Is that what you meant?

    Regards,
    Sven

  3. #3

    Default

    ya that only...
    Row class we can use without initializing it.
    like that which classes and all we can use as implicit in kettle(javascript)?

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

    Default

    The above are put in the scope of javascript by the step itself, so you can use them "without initializing"... the rest is your own responsibility.

    Regards,
    Sven

  5. #5

    Default

    hi sboden,

    my transformation detail is--------> table input is passing to javascript step

    table data

    primary_id id name message
    1 1 A message1 from A
    2 1 A message2 from A
    3 2 B message1 from B
    4 2 B message2 from B
    5 2 B message3 from B

    i need output from javascript as

    name message
    A message1 from A,message2 from A
    B message1 from B,message2 from B,message3 from B

    if it is possible to get this result u help me throu sample codes

    thanks,
    bhuvana

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

    Default

    You can't... the number of columns that appear over a hop have to be the same... same number, same name, same type, ...

    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.