Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Javascript within parameter template

  1. #1

    Default Javascript within parameter template

    I am trying to put a date picker inside my parameter template so that he user can choose the date using that instead of inputting it directly
    The datapicker is in a javascript file
    I try to include it



    it somehow does not look in the datetimepicker.js for the function that I use and complains that it cannot find the function.......
    I think it just ignores my datepicker js declration...
    Can you not include something like this in a template....

    Please explain

    Regards
    Pri

  2. #2

    Default Re:Javascript within parameter template

    Also how do I validate the input to my template.html I tried to put in some alerts in the javscript but nothing is displayed....

  3. #3
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Javascript within parameter template

    Hi there,

    I suggest you have a look over the custom parameter page example in custom-parameter-page-example.xaction and the corresponding custom XSL: CustomReportParameters.xsl.

    I hope this helps,

    Marc

  4. #4

    Default Re:Javascript within parameter template

    Thanx marc for that
    alerts do work in xsl
    Does this mean I have to use xsl for any javascript functionality I need ....
    The reason I ask is I havent really worked on xsl and xforms before and am trying to do something in a domain I know but if this is the only option I have to start learning....
    Regards
    Pri

  5. #5
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Javascript within parameter template

    Please see the samples/reporting/custom-parameter-page-example2.xaction which shows an example of a customer parameter page using just HTML - it uses the parameter-template.html.

    Take care,

    Marc

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.