Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Webclient Message box not working

(0) ShareShare
ReportReport
Posted on by 15

Hi,

when i try to implement message box in Webclient, it's not working same code is working in Desktop application.

Code :

namespace DotNetCustomization
{
[SupportedDexPlatforms(DexPlatforms.DesktopClient | DexPlatforms.WebClient)]
public class GPAddIn : IDexterityAddIn
{
public static IvItemMaintenanceForm ItemMaintenanceForm = Dynamics.Forms.IvItemMaintenance;
private IvItemMaintenanceForm.IvItemMaintenanceWindow
ItemMaintenanceWindow = ItemMaintenanceForm.IvItemMaintenance;


public void Initialize()
{
ItemMaintenanceForm.OpenAfterOriginal += new EventHandler(ItemMaintenaceForm_OpenAfterOriginal);
}

private void ItemMaintenaceForm_OpenAfterOriginal(object sender, EventArgs e)
{
Int16 answer;
answer = Dynamics.Forms.SyVisualStudioHelper.Functions.DexAsk.Invoke("RS test - please ignore", "Yes", "No", "Cancel");
this.ItemMaintenanceWindow.ItemDescription.Value = "RS Test";
}
}
}

*This post is locked for comments

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,020 Most Valuable Professional on at
    Webclient Message box not working
    Hi Guys
     
    The Supported Dex Platforms should work. I use
     
       [SupportedDexPlatforms(DexPlatforms.DesktopClient | DexPlatforms.WebClient | DexPlatforms.Service)]
     
    You cannot display a WinForm or .Net dialog, but using the SyVisualStudioHelper form or the more powerful Visual Studio Integration Toolkit suite of over 200 helper functions should work when displaying a Dexterity system dialog.
     
    Silly question, but is your addin DLL installed on the instance of the GP application where the webclient is running from?
     
    Regards
     
    David
     
     
  • SJ-25070822-0 Profile Picture
    on at
    Webclient Message box not working
    I feel your pain.  I've found that despite the [SupportedDexPlatforms(DexPlatforms.DesktopClient | DexPlatforms.WebClient)] attribute, the add in does not seem to be being used by the webclient.

    Did you ever find a solution to your issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,017 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans