PDA

View Full Version : Disabling Drill down/click through/etc.



dherzog
10-04-2007, 04:32 PM
I've seen several posts alluding to this problem or ways to configure it, but never any resolution, and I don't see anything in the documentation that talks about it, so I thought I'd try my hand at asking, and see if the community couldn't help out:

I have several charts of various styles (bar, line, stacked bar, pie, etc.), and no where did I indicate that I wanted any click-through/drill down functionality. However, they've all got it, which would be nice if I wanted it. But I don't...

Below is the code from the JSP page that creates the chart...



<TD> <!-- Downtime Distribution Pie Grid-->
<%
parameters = new SimpleParameterProvider();
parameters.setParameter( "image-width", "400"); //$NON-NLS-1$ //$NON-NLS-2$
parameters.setParameter( "image-height", "300"); //$NON-NLS-1$ //$NON-NLS-2$
content = new StringBuffer();
messages = new ArrayList();
ChartHelper.doChart( "Fleet", "Public", "DowntimeByShopPieGridWidget.xml", parameters, content, userSession, messages, null );
%>
<br/>
<%= content.toString() %>


...and here is the code from the widget that generates the chart...



<chart>
<title>Downtime Distribution Pie Grid</title>
<chart-type>PieGrid</chart-type>
<chart-background-color>#FFFFFF</chart-background-color>
<plot-background-color>#FFFFFF</plot-background-color>
<include-legend>true</include-legend>
<color-palette>
<color>#EE7733</color>
<color>#9EAA36</color>
<color>#BF0000</color>
<color>#FCCF12</color>
<color>#772200</color>
<color>#DDCC88</color>
<color>#123D82</color>
<color>#4A0866</color>
<color>#445500</color>-
<color>#FFAA00</color>
<color>#1E8AD3</color>
<color>#AA6611</color>
<color>#772200</color>
</color-palette>

<!-- Specify where the data for the chart comes from -->
<data>
<!-- Specify the path to the action sequence that provides the data -->
<data-solution>Fleet</data-solution>
<data-path>Public</data-path>
<data-action>DowntimeByShop.xaction</data-action>

<!-- Specify the output of the action sequence that contains the data -->
<data-output>qryresult</data-output>

<!-- Specify whether to get the chart series from the rows or columns -->
<data-orientation>rows</data-orientation>
</data>
</chart>


When I click on a pie chart wedge it takes me to http://localhost:8080/Pentaho/(insert (http://localhost:8080/Pentaho/%28insert) chart category here)

...but I don't want it to. I want no drill-through, no link. Ideas?

Thanks,

-Daniel

dherzog
10-08-2007, 07:52 PM
I don't know if there is an official answer, but I found one that works for me. By adding...



parameters.setParameter( "inner-param", "void");



...to the JSP page just prior to the ChartHelper.DoChart() method call, it seems to have disabled the click through.

-Daniel

PriyankaP
08-04-2010, 12:16 AM
Hi,

The click effect can also be disabled by removing the below given tag from the .xaction file..

<url-template>...</url-template>

Thanks & Regards

:)