Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Jpivot in MetaLayer.js

  1. #1
    Join Date
    Apr 2009
    Posts
    22

    Default Jpivot in MetaLayer.js

    Hi

    I'd like to add a jpivot block in my dashboard but I only have an example (map sample) to modify. I'd like to add it in Metalayer.js attached to my template instead from an xaction (I've tried it but I can't make it work).

    The goal is give some parameters from Metalayer.js to the Jpivot element.

    Is it possible? Or the only way is modify the map sample and do all other charts as xaction too?

    I'm using this definition in template.htm

    pivot =
    {
    name: "pivot",
    type: "jpivot",
    solution: "cdf-samples",
    path: dashBoardName,
    action: "Pivot1.xaction",
    parameters:[["territory","territory"],["productLine","productLine"]],
    listeners:["territory","productLine"],
    htmlObject: "pivot_object",
    executeAtStart: true,
    iframeHeight: "500px",
    iframeWidth: "850px",
    preExecution:function(){},
    postExecution:function(){}
    }

    Thanks!!

  2. #2
    Join Date
    Jul 2007
    Posts
    2,497

    Default

    You can pass parameters like in the other xactions...

    ... and can't we just pass the mdx query directly in the metalayer?
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Apr 2009
    Posts
    22

    Default

    Yes, that's what I want to do, but I don't know how to build a 'template' for a jpivot element in Metalayer.js. I lack of knowledge of js and I don't know how to translate the xaction in a element definition for Metalayer.

    If I use the xaction, I must pass the parameters in the parameters: [["myparameter","myparameter"]] line, no? With 'myparameter' the output var of other element.

    I'm going to make some tests and tell the results.

    Thanks!!! (muito obrigado!!

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.