Community
Showing results for 
Search instead for 
Do you mean 
Reply

ACT Premium 2011 for Web Custom Dashboard Component

New Member
Posts: 1
Country: USA

ACT Premium 2011 for Web Custom Dashboard Component

I am trying to build a custom dashboard component to be used with ACT Premium 2011 for Web. I have been trying to use a tutorial from 2008:

Task 1: Create the Dashboard Control
1. Run Visual Studio.NET
2. File | New | Project, select C# under Project Types, and select
Act.DevNet.Extensibility.Dashboard
3. Name the project Act.Dash and hit OK
4. Build the project, fix up any post-build steps
5. Run ACT!, go to the Dashboard designer, and under the Custom tab in
the toolbox, drag MyDashboardComponent onto the design surface.
Task 2: Customizing the Dashboard Control
1. Open the DashboardComponent in Design view
2. Make sure DashboardComponent is selected in the property grid, and
use the property grid to make the following changes:
1. Change the Header property text to: “My Dashboard
Component”
2. Change the ShowFilterButton and ShowFooter properties to
False
3. Delete the FilterText property text
3. Build & Run (see steps 4 & 5 of Task 1).
4. Save a dashboard layout with the control on it as “My Dashboard”
Exercise 2: ACT! for Web Custom Dashboard Control
Task 1: Create the Web Dashboard Control
1. Run Visual Studio.NET
2. File | New | Project, select C# under Project Types, and select Class
Library
ACT! SDK Hands-On Lab 20
3. Name the Project Act.WebDash and hit OK
4. Make sure this is a .NET 2.0 targeted project
5. Add a reference to Act.Web.Controls and System.Web
6. Add the following namespace references:
using System.Web.UI.HtmlControls;
using Act.Web.Controls.Layouts;
7. Add a class, name it DashboardComponent
8. Make this class derive from WebDashboardComponent
9. Override the following properties:
class DashboardComponent : WebDashboardComponent
{
public override string RenderDetailAreaHTML()
{
return "Hellow world";
}
public override string HeaderText
{
get { return string.Empty; }
}
}
10. Add post build steps to copy the dll to the Tools directory (you can
copy post build steps from the previous project)
11. Open the previous project, Act.Dash
12. Add the following attribute to the DashboardComponent class:
WebDashboardComponentAttribute("Act.WebDash.DashboardCompon
ent, Act.WebDash, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null")
This will map the Windows dashboard control to the Web dashboard
control.
13.Build Act.Dash
14. Build Act.WebDash & Run ACT! Premium for Web
(http://localhost/APFW)
15. Open “My Dashboard” in the Dashboard view

 Everything works ok and I can see the Custom component in my dashboard when using ACT for Windows but it does not appear in ACT for Web. No error messages or anything just a blank spot where it should be.  I'm thinking the mapping from Windows to Web(step 12) is what is not working correctly. 

 

Has anyone done this before? Or taken a different route to get a custom Dashboard component in Web? 

Any help would be greatly appreciated

 

-Jake