Community
Showing results for 
Search instead for 
Do you mean 
Reply

Custom Sub Entity Visual Studio Template

Employee
Posts: 213
Country: USA

Custom Sub Entity Visual Studio Template

Microsoft Visual Studio 2008 C# project and item template that will enable you to easily create a Custom

Tables plug-in solution in ACT!, including a custom tab with rows to

enter data in ACT!.  This also includes the SDK hands on lab manual from Insights 2008.

 

 

Bronze Contributor
Posts: 1,244
Country: USA

Re: Custom Sub Entity Visual Studio Template

Thanks for getting this up on the DevNet so quickly.  After attending the great session I was anxious to try this out further.
Patricia Egen
Certified ACT! Consultant, Trainer, Developer
www.egenconsulting.com
(423) 875-2652

Follow us on:


Visit our Popular ACT Wizards Page Wizards Here!

New Member
Posts: 9
Country: USA

Re: Custom Sub Entity Visual Studio Template

Xavier, and anyone else who is familiar with this Custom Sub-Entity work.

 

 

First off - I am running ACT! Premium For Web 10.0.2 on Windows Server 2003, with Microsoft SQL Server.

 

---I had this same error and problem when I installed the Policies sample.---

 

I downloaded this custom template, and opened it up in Visual Studio 2008. I located the dlls that are referenced, and added them as my references, and then I followed the instructions in the lab to create the Pets Custom Sub Entity (CSE from now on). I built the .dll file, and installed it.

 

On starting up ACT!, it asked me for permission to modify the database, and created the tables in the DB. When I open up the Pets tab, it displays the empty table on the first time, or the Pets that I have entered previously. So, it is storing them in the database - it keeps state even if I close out and return. Just looking at it doesn't cause any errors.

 

When I click Add Pet, it creates the pet, but then errors out with:

 

Method Not Found: 'DataDescriptorCollection Act.Framework.CustomEntities.CustomEntityList `1.get_FieldDescriptors'.

 

It then creates the pet and puts it in the table.

 

I've been doing some debugging, and put in some debug output, and I can trace the problem to the LoadGridData() function in  CustomSubEntityTabControl. The error occurs on the line which says:

 

// Databind the grid to the list of policies.

this.subEntityDataGridView.DataSource = this.bindingSource1;

 

Now. It doesn't error when LoadGridData() is called upon loading up the tab (i.e. after just clicking it). It errors when LoadGridData() is called to refresh the table after the new Pet has been added. Specifically, it appears to happen when it is called by  

customSubEntity.Update(); Although, I'm not entirely sure how that calls it, other than that it does call LoadGridData() somehow.

 

 

I will keep working on attempting to debug this. I'm not sure if it's a problem with the sample code, or with the .dlls that I'm using in my Premium For Web version versus whatever version the sample code was developed on.

 

Thanks for anyone that can help!

-Mike

Tuned Listener
Posts: 14
Country: India

Re: Custom Sub Entity Visual Studio Template

Hi,

 

 As in LAN can i create custom entity in WEB. I found this  

custom sub-entities solutions using the ACT! custom sub-entity template:

Act.DevNet.Extensibility.CustomSubEntity. Does it work for Web how much beneficial it is.

 

Any help is appreciated.

Copper Contributor
Posts: 41
Country: USA

Re: Custom Sub Entity Visual Studio Template

Is there a VB version of this template. I am looking for examples of using custom tabs in contact,company, and group views.

 

Bob Lozinak

Bob Lozinak
Twelve/Three Marketing, Inc.
Software Developer
Avid Listener
Posts: 12
Country: United States

Re: Custom Sub Entity Visual Studio Template

Hi guys,

 

Will this work for ACT 2010 premium?

 

thanks,

 

Chris

Tuned Listener
Posts: 14
Country: India

Re: Custom Sub Entity Visual Studio Template

Yes ,it wrks for ACT12 also.

New Member
Posts: 8
Country: USA

Re: Custom Sub Entity Visual Studio Template

I wanna know if I can post our activities through our own software directly.

Can you help

thanks.
Tuned Listener
Posts: 14
Country: Australia

Re: Custom Sub Entity Visual Studio Template

Can anybody help me when using this template? i am using VS2012.

 

Not sure if the two warnings do matters?

 

 

first error is nomal according to the document.

 

 

second error is corrected by using:  Act.Framework.Contacts.Contact currentContact = this.actApplication.ApplicationState.CurrentContact;

Employee
Posts: 1,163
Country: USA

Re: Custom Sub Entity Visual Studio Template

The text in the error section is too small for me to read =\

 

However, based on the fact that it's  underlying Contact makes me think there's just a missing using statement.

 

using Act.Framework.Contacts;

 

Add that if it's not already there.

Matthew Wood
Act! SDK Support
Community Moderator