[Anthill-pro] Reports and params

Yanko, Curtis curt_yanko at uhc.com
Tue Jul 1 06:53:32 CDT 2008


Anything on this? I want to pass in Title, X & Y labels.
 
Also found the Cewolf site and the 3D pie chart, what kind of data does
it want? 2 fields, name and value? Or do I have to add everything up or
do some other math to help it out?
 
===
-Curt
W: 860.702.9059
M: 860.881.2050
 

________________________________

From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Yanko,
Curtis
Sent: Friday, June 27, 2008 12:28 PM
To: AnthillPro user and support list.
Subject: [Anthill-pro] Reports and params


We have reworked almost all of our reports to accept parameters for
Month and Year since getting reports on every build that has ever
happened is not always useful. What I am looking to do now is get that
info into the template. I want to make a new Bar Chart template (or
change the existing one) to use this info in the context script to so
the chart say which Month and Year were selected.
 
import com.urbancode.anthill3.domain.reporting.graphing.*;
import com.urbancode.anthill3.domain.singleton.serversettings.*;
import java.awt.Color;
 
producer = new ReportDataProducer();
dataMap = new HashMap();
dataMap.put("data", context.get("output"));
report = context.get("report");
chart = GraphicsHelper.createChart(producer, "stackedverticalbar3d",
report.getName(), " ", report.getName(), dataMap, new Color[]
{Color.RED, Color.GREEN});
String chartUrl =
GraphicsHelper.getChartUrlString(context.get("request"),
context.get("response"), chart, 800, 600);
 
context.put("chartUrl", chartUrl);
 
 
I'm guessing that now the report.getName() is what I want to override
(at least one of them!) but I'm not sure how to approach this. Any hints
or clues?
 
I'll be happy to share our scripts as I feel they are generally useful
to the community. It's just the stock reports with some calendar
arithmetic to set start and end dates for the
getAllBuildLifeWorkflowSummaries().
 
===
-Curt
W: 860.702.9059
M: 860.881.2050
 



This e-mail, including attachments, may include confidential and/or 
proprietary information, and may be used only by the person or entity to

which it is addressed. If the reader of this e-mail is not the intended 
recipient or his or her authorized agent, the reader is hereby notified 
that any dissemination, distribution or copying of this e-mail is 
prohibited. If you have received this e-mail in error, please notify the

sender by replying to this message and delete this e-mail immediately.



This e-mail, including attachments, may include confidential and/or 
proprietary information, and may be used only by the person or entity to 
which it is addressed. If the reader of this e-mail is not the intended 
recipient or his or her authorized agent, the reader is hereby notified 
that any dissemination, distribution or copying of this e-mail is 
prohibited. If you have received this e-mail in error, please notify the 
sender by replying to this message and delete this e-mail immediately.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080701/22c6b6c1/attachment-0001.htm


More information about the Anthill-pro mailing list