06-03-2014 08:45 PM
Is it possible to have a custom button that when clicked takes the number from a field and +1 then write thenew number in the field
I basically have multiple areas to report on small activities done for clients
How would this be achieved either at the contact level or contact list level?
06-15-2014 02:12 PM
This is certainly possible using the Act! SDK. If you haven't already got a copy of the SDK you can obtain it here:
I'd recommend you start by taking a look at the Customization Cookbook and the section titled Adding a new menu and handler. This should give you a good grasp of adding new menu item and buttons.
In regards to editing specific contact fields, it would look something like this:
Act.Framework.Contacts.Contact c = oApp.ApplicationState.CurrentContact; int newVal = Convert.ToInt32(c.Fields["MYFIELD", true].ToString()) + 1; c.Fields["MYFIELD", true] = newVal; c.Update();
I hope this helps.
06-15-2014 02:24 PM
Thanks for that its a lot of suff but i will go through it all and see what i can get to work, it should be simple as i jsut want a "log button"
06-15-2014 09:24 PM
06-18-2014 03:33 AM
06-18-2014 04:07 AM
sorry i had the wrong sample loaded
06-18-2014 05:22 AM
06-19-2014 05:21 AM
It sounds like the plugin is either not being loaded by Act! or there's a mistake in your code.
To check if it's the former you can look in a file called DependentDlls.xml to see whether it references your plugin.
If it does then Act! has blocked your plugin because it detected a problem or the addin has been manually disabled.
You can safely delete DependentDlls.xml to force Act! to reload all plugins and see if now works.
The file can be found in your Windows user Application Data folder as follows:
Alternatively if you're on Act! v16.1 then you can go to Tools > Manage Add-ons and ensure your plugin is loaded.
If neither of these work then it suggests there is a problem in your code.
Have you got any errors logs that you can check?
06-19-2014 02:00 PM
Thanks for your reply Sam, i muddled my way through that from some other articles on here, it does show up in the dependentdll file every time, i dont think its my code per say but maybe how i am coding it??? as i did the sample code with no edits and same thing happened
In VS i code in as "C#" only because thats what the sample file is, then as a "Class Library" output
It was defaulting to .NET 4 Client and i read an article here that it had to be just .NET4 and i have also tried .NET 3.5 and .NET 3
06-20-2014 07:04 AM