Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: Beautiful Charts on Saleslogix WEB
Jose Urena
Posts: 92
 
Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Mar 09 5:58 PM
Ok. First i have to thank Ryan for the 3.5 SP2 problem help!

Lets add some fancy graphics to Saleslogix. See the following url http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx

Wouldnt be great to have them in Saleslogix WEB ?

Ok. Here's how i did it with Saleslogix 7.2.2.

First. Be sure to download Net Framework 3.5 SP2 (Note the SP2 is mandatory). Install it.

Download and install the free Microsoft Chart Controls. Do it faster, before they start to sell it.

Be sure to follow the steps of the installations. If you are asked to reboot... DO IT!

Now here comes the tricky part... again Thanks Ryan! http://slxdeveloper.org/forum.aspx?forumid=4001&postid=21677

Remove the action="javascript:void(0);" of login.master, default.master, dialog.master and base.master files of your portal.

Locate the web.config file and add the following:

To the <Controls> section: <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

To the <httpHandlers> section: <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

To the <appSettings> section: <add key="ChartImageHandler" value="Storage=file;Timeout=20;Url=~/tempImages/;"/>

Save and close your web.config.

Create a folder on your portal's root called... you guessed it... "tempImages"...

Do the "iisreset" trick just to be sure. After iis restarts, test your portal. It should be running fine.

Now, lets add the fancy graphics.

Take any smartpart you want. I made a new smartpart to show a funnel dashboard on the campaign section. I don't enter in details about how to do that because that's for another writeup. Lets just say, i've created Dashboard as a custom smartpart.

Open both Dashboard.ascx and Dashboard.ascx.cs.

Add using System.Web.UI.DataVisualization.Charting; to Dashboard.ascx.cs, save it.

To Dashboard.ascx add:

<asp:CHART id="Chart1" runat="server" BackColor="211, 223, 240" BackGradientStyle="TopBottom" BackSecondaryColor="White" BorderColor="#1A3B69" BorderDashStyle="Solid" BorderWidth="2px" Height="296px" ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" ImageType="Jpeg" Width="412px" PaletteCustomColors="RoyalBlue; SeaGreen; Firebrick; Khaki">
<titles>
<asp:Title ShadowColor="Transparent" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" Text="Resultados" ForeColor="26, 59, 105" BackImageAlignment="Top" Name="Title1">
</asp:Title>
</titles>
<legends>
<asp:Legend Enabled="False" IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"></asp:Legend>
</legends>
<borderskin skinstyle="Emboss"></borderskin>
<series>
<asp:Series IsValueShownAsLabel="True" XValueType="Double" Name="Default" ChartType="Funnel" CustomProperties="FunnelMinPointHeight=1" BorderColor="180, 26, 59, 105" LabelFormat="F0" YValueType="Double" ChartArea="ChartArea1" Legend="Default" ShadowColor="Transparent">
<points>
<asp:DataPoint YValues="1" CustomProperties="FunnelLabelStyle=Inside" IsValueShownAsLabel="False" LabelFormat="F2" MapAreaAttributes="" ToolTip="" Url="" />
<asp:DataPoint YValues="1" CustomProperties="FunnelLabelStyle=Inside" IsValueShownAsLabel="False" MapAreaAttributes="" ToolTip="" Url="" />
<asp:DataPoint YValues="1" CustomProperties="FunnelLabelStyle=Inside" IsValueShownAsLabel="False" MapAreaAttributes="" ToolTip="" Url="" />
<asp:DataPoint YValues="1" CustomProperties="FunnelLabelStyle=Inside" IsValueShownAsLabel="False" MapAreaAttributes="" ToolTip="" Url="" />
</points>
</asp:Series>
</series>
<chartareas>
<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="White" BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
<area3dstyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False" WallWidth="1" Enable3D="True" LightStyle="Realistic" />
<position Y="12" Height="81" Width="89.43796" X="5"></position>
<axisy LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</axisy>
<axisx LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</axisx>
<InnerPlotPosition Height="96.90312" Width="97.35575" X="2.37221" Y="0.4185" />
</asp:ChartArea>
</chartareas>
</asp:CHART>

Save it and close Dashboard.ascx.

Now, you can locate the Page PreRender of Dashboard.asc.cs and place some code like this:

double[] yValues1 = new double[] { Convert.ToDouble(vigentes), Convert.ToDouble(cumplidas), Convert.ToDouble(incumplidas), Convert.ToDouble(vencidas)};
Chart1.Series["Default"]["FunnelLabelStyle"] = "Inside";
Chart1.Series["Default"].Points.DataBindY(yValues1);
Chart1.Series["Default"]["FunnelMinPointHeight"] = "10";

Notice that all the variables i was using (vigentes, cumplidas, incumplidas and vencidas) are being converted to DOUBLE!!! VERY IMPORTANT!!! And notice that you can add as many points to your yValues1 as you want.

Save, close, deploy, OPEN YOUR PORTAL!!!

ENJOY THE FANCY GRAPHICS!!!
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Jun 09 1:17 PM
Joseph:

This is truly a good post, the only comment I got about it is that I don't believe SP2 for framework 3.5 is needed for this.
I was able to install, configure it and run without SP2 (but did have SP1 installed).

Again, great find.

Thanks for the article!
[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jun 09 10:08 AM
Ok, cool, but as far as I know there is no released version of 3.5 SP2. Can you point me to that release as maybe it has some good stuff in ot.

Mark
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jun 09 11:12 AM
That was my point, it doesn't require 3.5 SP2.
[Reply][Quote]
Jose Urena
Posts: 92
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jul 09 9:34 AM
Well maybe was included when i installed the NET Framework 4 with the Visual Studio .NET 2010 Beta...

But you are right... the charts only need SP1. Just follow the instructions when installing the charts and testing the samples.
[Reply][Quote]
Jose Urena
Posts: 92
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jul 09 9:45 AM
Quote:
Originally posted by Raul A. Chavez

Joseph:

This is truly a good post, the only comment I got about it is that I don't believe SP2 for framework 3.5 is needed for this.
I was able to install, configure it and run without SP2 (but did have SP1 installed).

Again, great find.

Thanks for the article!


By the way... how do you know my friends call me " Joseph " ???
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jul 09 12:24 PM
You must have had it somewhere, I recall distinctively the fact that you had signed something as "Joseph", thus I didn't reply to you as "Jose".

[Reply][Quote]
Veronka Capone
Posts: 113
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Dec 09 3:05 PM
Hi Jose,

I am runing into some errors when trying to implement your example. I am on SLX WebClient 7.5.2.

In my custom page, when I put the chart control, I get the following error message:

----------------------------------ERROR START------------------------------------------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 22 Dec 2009 20:48:56 UTC


Message: 'Ext.get(...)' is null or not an object
Line: 79
Char: 556
Code: 0
URI: http://pmt-s-bizdev:3333/SLXClientVera/jscript/sage-platform/sage-platform.js

----------------------------------ERROR END------------------------------------------------

Any idea what might be wrong? (The only master file which had action="javascript:void(0);" was default.master. I tried both to leave and delete this code...

My .ascx file looks like this: (I didn't add any code to Prerender....).



<%@ Control Language="C#" AutoEventWireup="true" CodeFile="BasicChart.ascx.cs" Inherits="ChartSample" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

This is a test for charts


<<asp:Chart ID="Chart1" runat="server" Palette="Bright">
<Series>
<asp:Series Name="Series1">
<points>
<asp:DataPoint YValues="45" />
<asp:DataPoint YValues="34" />
<asp:DataPoint YValues="67" />
<asp:DataPoint YValues="31" />
<asp:DataPoint YValues="27" />
<asp:DataPoint YValues="87" />
<asp:DataPoint YValues="45" />
<asp:DataPoint YValues="32" />
</points>

</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>






[Reply][Quote]
Jose Urena
Posts: 92
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 09 9:09 AM
Are the double < where the chart is defined a posting mistake?
[Reply][Quote]
Veronka Capone
Posts: 113
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 09 9:15 AM
Yeah ...
[Reply][Quote]
Jose Urena
Posts: 92
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 09 9:20 AM
Can you try the same page without the chart?
[Reply][Quote]
Veronka Capone
Posts: 113
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 09 9:51 AM
I did. It's working fine.
[Reply][Quote]
Jose Urena
Posts: 92
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 09 10:06 AM
Try the chart but don't use the:
< %@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
[Reply][Quote]
Veronka Capone
Posts: 113
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 09 10:27 AM
I tried, but then I get the same error error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 23 Dec 2009 16:27:16 UTC


Message: 'Ext.get(...)' is null or not an object
Line: 79
Char: 556
Code: 0
URI: http://pmt-s-bizdev:3333/SLXClientVera/jscript/sage-platform/sage-platform.js



[Reply][Quote]
Jose Urena
Posts: 92
 
Re: Beautiful Charts on Saleslogix WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Apr 10 11:02 AM
Are you using Mozilla to browse the page?

Try the page from a IE8 with IE7 compatibility mode.

Sorry about the dalys on my posts... working a lot...
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 8:12:36 PM