Share via


Code for the web client

Most of the code that you write for a Visual Studio Tools integration designed for the desktop client will work in the web client without needing any changes. However, there are some areas that will require changes to work correctly in the web client.

For example, modal dialogs in a typical Visual Studio Tools integration may not work on the web client. Typically, the MessageBox class from the .NET framework is used to display modal dialogs. However, this class isn't supported by the Microsoft Dynamics GP web client. The common solution is to replace calls to the MessageBox class with calls to helper functions, like DexAsk() or DexError(), in the Dynamics dictionary.

In some cases, you may have one set of code that runs on the desktop client, and another set of code that runs on the web client. You would use the DexRuntimeGetClientType() function to determine which set of code to run.

Refer to Developing for the Web Client for detailed information about common development issues you will encounter as you prepare your Visual Studio Tools integration to work with the web client.