COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: sir_jeroen on 09 Oct 2005 12:26:37 PM

Title: [Tutorial] Creating custom gauges in ReportNet
Post by: sir_jeroen on 09 Oct 2005 12:26:37 PM
Hi all,

I've created a new tutorial on Creating Custom gauges in ReportNet.

http://www.jeroendegraaff.nl/tutorials

Beware: There's voice :-\

My thanks go out to Ed Worsfold from Dundas who provided me with some gauge templates.

I'll be sharing these templates with you too.

(Note: Cognoise administrator: can you enable .zip?? )


In order to download the component please visit:

http://www.dundas.com/products/gauge/index.aspx?Section=Gauge&Campaign=Cognoise.com

Don't forget to look at the gauges gallery..

There are some great looking gauges!!!

Please let me know what you think of the tutorial and what you think of the product I used.


(This is so I know I'm not doing this only for myself)


Here's the code that you can use:

This code uses 2 parameters: GaugeType and Value.
Parameter:
Ã,  Ã,  Ã, GaugeType: use to select the template that you want to use for your gauge;
Ã,  Ã,  Ã, Value: The value to display;



string strGaugeNumber = "1";
double dblValue = 0;

if (Request.Params["GaugeType"] !="" && Request.Params["GaugeType"] != null)
{
Ã,  Ã,  strGaugeNumber = Request.Params["GaugeType"];
}
if (Request.Params["Value"] != "" && Request.Params["Value"]!= null)
{
Ã,  dblValue = Convert.ToDouble(Request.Params["Value"].Replace('.',','));
}
try
{
objGaugeContainer.Serializer.Load (@"http://localhost/GaugeCollection/GaugeTemplate"+strGaugeNumber+".xml");
}
catch
{
objGaugeContainer.Serializer.Load(@"http://localhost/GaugeCollection/GaugeTemplate1.xml");
}
objGaugeContainer.RenderType = RenderType.BinaryStreaming;
objGaugeContainer.CircularGauges[0].Pointers[0].Value = dblValue;
objGaugeContainer.Page = this;
HtmlTextWriter writer = new HtmlTextWriter(Page.Response.Output);
objGaugeContainer.RenderControl(writer);
}


Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: sir_jeroen on 10 Oct 2005 01:40:29 PM
The templates are uploaded :D
Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: BIsrik on 11 Oct 2005 12:51:59 AM
Superurb!!!

Srik
Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: jolly on 11 Oct 2005 04:38:21 AM
THX for sharing your tutorials. Great Job.

Cu Jolly
Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: Vialli26 on 09 Jul 2007 10:00:13 PM
Quote from: ReportNet Addict on 10 Oct 2005 01:40:29 PM
The templates are uploaded :D

I can't download them :( throws an error message -> Page Cannot Be Found
Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: kpajak on 12 Jul 2007 10:38:23 AM
Those tutorials are very nice, thanks.   I noticed during the tutorials that your ReportNet installation runs really fast, at least compared with what I'm using.  Would it be possible to find out some of the specs of the hardware and operating system that computer is running?

Thanks.

Ken
Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: johnpenna on 21 Feb 2008 10:48:44 AM
Any chance of getting the template Zip file back please  ;D
Title: Re: [Tutorial] Creating custom gauges in ReportNet
Post by: Harman on 14 Jul 2009 02:39:03 AM
Does anyone have a working copy of the templates?