Hitachi Vantara Pentaho Community Wiki
Child pages
  • Components

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property

Description

Default value (must be present)

Type

Required for

name

Name of the component

 

String

all

type

Type of the component

 

String

all

solution

Solution of the xaction

 

String

 

path

Path to the yaction within the solution 

 

String

 

action

Name of the xaction to be executed

 

String

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="becf59e6380e845b-969a1f5e-40404391-bc32958f-bf2c6c1246852bfd048a9420"><ac:plain-text-body><![CDATA[

listeners

A change in on of this variables triggers a refresh of the component

[]

Array of Strings

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ee07765b3f637d9d-f91997e5-4fb74c9c-85869300-c8d12e40c0fc296ee5c38305"><ac:plain-text-body><![CDATA[

parameters

Parameters to execute the xaction

[]

Array of String arrays

 

]]></ac:plain-text-body></ac:structured-macro>

parameter

The dashboard variable that gets set by this component

 

String

 

htmlObject

The id of the html tag that display this component (usually a <div>)

 

String

all

expression

Function to return a parametrized String

function(){};

 

text

executeAtStart

Should the component be executed when the dashboard is loaded? (true or false)

function(){};

boolean

all

preExecution

This Javascript function will be executed before the components executes

 

function

all

postExecution

This Javascript function will be executed after the components executes

 

function

all

These componets have been implemented so far:

#check

[#dateInput

...

...

#radio

...

#select

...

#selectMulti

...

#text

...

#textInput

...

#xactioncheck

...

check

Creates a  list of labeled checkboxes from the result set of the defined Action Sequence

...

Code Block
JavaScript
JavaScript
dateInput =

{

&nbsp; name: "dateInput",

&nbsp; type: "dateInput",

&nbsp; parameter:"dateStart",

&nbsp; htmlObject: "object_dateInput",

&nbsp; executeAtStart: true,

&nbsp; preExecution:function(){},

&nbsp; postExecution:function(){}

}

radio

Create a list of labeled radio buttons from the result set of the defined Action Sequence

Code Block
JavaScript
JavaScript
regionRadio =

{

&nbsp; name: "regionRadio",

&nbsp; type: "radio",

&nbsp; solution: "dashboards",

&nbsp; path: "sample_dashboard_components",

&nbsp; action: "regions.xaction",

&nbsp; parameters:\[\],

&nbsp; parameter:"region",

&nbsp; htmlObject: "object_radio",

&nbsp; executeAtStart: true,

&nbsp; preExecution:function(){},

&nbsp; postExecution:function(){}

}

select

Create a single select drop down list from the result set of defined Action Sequence

Code Block
JavaScript
JavaScript
regionSelector =

{

&nbsp; name: "regionSelector",

&nbsp; type: "select",

&nbsp; solution: "dashboards",

&nbsp; path: "sample_dashboard_components",

&nbsp; action: "regions.xaction",

&nbsp; parameters:\[\],

&nbsp; parameter:"region",

&nbsp; htmlObject: "object_select",

&nbsp; executeAtStart: true,

&nbsp; preExecution:function(){},

&nbsp;&nbsp;postExecution:function(){Dashboards.processChange(this.name);}

}

selectMulti

Create a multi select list from the result set of defined Action Sequence

Code Block
JavaScript
JavaScript
regionSelectorMulti =

{

&nbsp; name: "regionSelectorMulti",

&nbsp; type: "selectMulti",

&nbsp; solution: "dashboards",

&nbsp; path: "sample_dashboard_components",

&nbsp; action: "regions.xaction",

&nbsp; parameters:\[\],

&nbsp; parameter:"region",

&nbsp; htmlObject: "object_multi",

&nbsp; size: "4",

&nbsp; executeAtStart: true,

&nbsp; preExecution:function(){},

&nbsp; postExecution:function(){}

}

text

Updates the text in a HTML String  using the expression

Code Block
JavaScript
JavaScript
titleString =

{

&nbsp; name: "regionVarianceBarChart",

&nbsp; type: "text",

&nbsp;listeners:\["region","dateStart"\],

&nbsp; htmlObject: "text_object",

&nbsp; executeAtStart: true,

&nbsp; expression: function(){return "'Chosen region: ' + region + '; Start date: ' + dateStart"},

&nbsp; preExecution:function(){},

&nbsp; postExecution:function(){}

}

textInput

Creates a text imput field.

...