Enabling integrations for the web client
In most cases, additional development work and testing are needed so that a Visual Studio Tools integration will work properly for the Microsoft Dynamics GP web client. For this reason, Visual Studio Tools integrations are not loaded by default for the web client. To have an integration load on the Microsoft Dynamics GP web client, you must add the SupportedDexPlatforms attribute to the class that implements the IDexterityAddIn interface to indicate that the integration works for the web client.
Hint: When you enable a Visual Studio Tools integration to work on the web client, be sure that you thoroughly test it to be sure that it is working properly.
Enabling a C# integration
The following example shows how to enable a C# integration for both the desktop client and the web client. The SupportedDexPlatforms attribute takes one parameter that indicates which platform or platforms are supported by the integration. In this example, the logical-or operation is used to indicate that both the desktop client and the web client are supported.
namespace CSharpSample { [SupportedDexPlatforms(DexPlatforms.DesktopClient | DexPlatforms.WebClient)] public class GPAddIn : IDexterityAddIn { // IDexterityAddIn interface public void Initialize() { } } }
Enabling a Visual Basic integration
The following example shows how to enable a Visual Basic integration for both the desktop client and the web client. The SupportedDexPlatforms attribute takes one parameter that indicates which platform or platforms are supported by the integration. In this example, the logical-or operation is used to indicate that both the desktop client and the web client are supported.
<SupportedDexPlatforms(DexPlatforms.DesktopClient Or DexPlatforms.WebClient)> Public Class GPAddIn Implements IDexterityAddIn ' IDexterityAddIn interface Sub Initialize() Implements IDexterityAddIn.Initialize End Sub End Class