Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to get a part of a select component string as parameter

  1. #1

    Default How to get a part of a select component string as parameter

    Hi !

    Someone could guide me on the best way to capture a value in a select component but only a portion of the string as a parameter. In particular the first 3 characters of counting from left to right.

    I know it must be something very elementary to senior members but I'm stuck. This procedure will become much more friendly the DashBoard.

    Thanks
    Emannuel

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    You can use the postChange hook on the selectComponent. It's a javascript function that will be triggered whenever the select value changes.

    So, you have a select component which is linked to parameter A.
    When the user changes the select, the new value will be assigned to parameter A and postChange will be called. on postChange, you substring A and assign the first 3 chars to your parameter.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

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.