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

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 );
<%= content.toString() %>

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

<title>Downtime Distribution Pie Grid</title>

<!-- Specify where the data for the chart comes from -->
<!-- Specify the path to the action sequence that provides the data -->

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

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

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?



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.


08-04-2010, 12:16 AM

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


Thanks & Regards