PDA

View Full Version : Dashboard Filter and chart param problem



mikeyparker
02-16-2006, 08:36 AM
I have problem. I have modified the original dashboards to create a custom set. I have a filter which offers the user a dropdown list to select a timespan. When this filter is used it sends something like the following back to the server.

http://localhost:8080/portal/auth/index.html?ctrl:id=window.default.Filters&ctrl:type=action&TIMESPAN=2/16/2005-2/16/2006

I then have a chart.xml that uses and action to generate the data for the chart. This all works fine. Excepting that it just ignores the param TIMESPAN.

I have tested that the action works directly with the TIMESpan and it does.

http://localhost:8080/pentaho/ViewAction?&solution=webstats&path=widgets&action=pageRequestsByDay.xaction&TIMESPAN=2/16/2005-2/16/2006

I'm guessing that I've missed a step that passes this param to the action when used via chart.xml.

This is the contents of my chart.xml


BarChart
false
400
200
height:150px;overflow:auto

webstats
widgets
pageRequestsByDay.xaction
rule-result
Day
pages
columns



Any help appreciated. Thanks

mikeyparker
02-16-2006, 08:40 AM
Ahhh I see that markup is stripped (not in the preview though) so I've attached as a file. http://forums.pentaho.org/archived_att/files/pageRequestsByDay.barChart.xml