Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Build placeholders/parameters for HTML element

  1. #1
    Join Date
    Aug 2008
    Posts
    8

    Default Build placeholders/parameters for HTML element

    Hi there,

    How can I add an individual placeholder/parameter to my dashboard?

    I have tried it already the following way, but it didn't work:
    • add a custom parameter "ActualTime" under the components tab:
      Code:
      function f() {     var Jetzt = new Date();
          return Jetzt.toLocaleString(); 
      }
    • add ${ActualTime} to a HTML element in the layout tab
    • in preview the placeholder isn't replaced


    Can somebody please help me with this, I didn't find any other forum entries on an similiar issue?

    Best
    Karsten

  2. #2
    Join Date
    Aug 2008
    Posts
    8

    Default

    So, I actually adopted the HTML-element to this code:
    Code:
    <span id="ReportTime"></span>
    <script language="javascript">
        var Jetzt = new Date();
        $("#ReportTime").html(Jetzt.toLocaleString());
        return Jetzt.toLocaleString(); 
    </script>
    If you have a better solution than this, please announce. A solution with a parameter seems better to me..
    Last edited by KHauser; 09-06-2013 at 07:24 AM.

Tags for this Thread

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.