Community
Showing results for 
Search instead for 
Do you mean 
Reply
Accepted Solution

Custom Button

Highlighted
Copper Super Contributor
Posts: 485
Country: Australia

Re: Custom Button

thats a nice little tool

 

Nothing specific about the plug in but i have a few errors pop up

 

No Value with requested Preference Key.OUTLOOKCOPY/COPYCALENDAR

No Value with requested Preference Key.OUTLOOKCOPY/COPYNEXTXXXDAYS

No Value with requested Preference Key.OUTLOOKCOPY/NEXTXXXDAYS

No Value with requested Preference Key.OUTLOOKCOPY/CUSTOMBEGINDATE

No Value with requested Preference Key.OUTLOOKCOPY/CUSTOMENDDATE

No Value with requested Preference Key.OUTLOOKCOPY/FORDATES


Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6
Highlighted
Copper Contributor
Posts: 42
Country: Germany

Re: Custom Button

Hi,

 

your initial question asked about a button, then it was suggested to "Add a new menu and handler."

Maybe you build a TOOL and not a plugin. Theese two are different:

A Plugin is located in the Plugins-Folder and loaded at ACT startup, if no entry in DependentDlls.xml is found.

A Tool (e.g. a button) must be placed on a Layout. Tools reside in the Tools-Folder in the ACT installation folder. You can place the button with the Layout editor but you'll first have to add it to the editor's Toolbox (Right-click in the toolbox).

 

The indeed not so very helpful SDK has two samples (Sage ACT! SDK\Content\Code Samples)

ContactNameControl is a Tool

CustomMenuPlugin is a Plugin

 

Add the following Post-build events to your project:

copy $(TargetPath) "C:\Program Files (x86)\ACT\Act for Windows\Tools\"
copy $(TargetDir)\$(TargetName).pdb "C:\Program Files (x86)\ACT\Act for Windows\Tools"
And under the debug Tab add "C:\Program Files (x86)\ACT\Act for Windows\ActSage.exe" as "Start external program"

 

then you can hit F5 to start debugging (start ACT) and you can set breakpoints so you might see what causes the problem.

 

Alternatively you could also post the sourcecode you have so far

Highlighted
Solution
Accepted by topic author JasonD
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 52
Country: United_Kingdom

Re: Custom Button

Hi Jason,

 

I've attached a class to this post that should help. 

 

You should only need to amend the MenuHandler method.

 

I hope this helps,

 

Kind regards,

 

 

Russell

Highlighted
Copper Super Contributor
Posts: 485
Country: Australia

Re: Custom Button

Thanks for all your help Russell fantastic result


Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6