Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Visual studio form not opening on WebClient but opening on GP2018

(0) ShareShare
ReportReport
Posted on by

Hi

i have created two visual studio forms for dynamics gp 2018 i have added assembly in addins folder and below is code that i used 

[SupportedDexPlatforms(DexPlatforms.WebClient | DexPlatforms.DesktopClient)]
public class GPAddIn : IDexterityAddIn
{

My code starts here

}

when i debug its hitting my code but my form is not showing in web client any idea what i am missing.

code is executing successfully with no exception. but form.show() does nothing.

Thank you

Shah

*This post is locked for comments

  • Frikkie Steyn Profile Picture
    Frikkie Steyn 15 on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    I see what you are saying. The programmers guide is dated 2013.

    Kind of silly to ship a 2020 product with a 2013 outdated guide...

    But thanks, you did help!

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    Hi Frikkie

    The documentation you found was for the old Silverlight based Web Client which did allow for a Visual Studio form to be rendered using Silverlight.

    The current HTML5 Web Client does not have any way to render a form on the Web Client. This will not change.

    You need to either use Dexterity to create a new form, or add fields to an existing window with Modifier.

    Regards

    David

  • Frikkie Steyn Profile Picture
    Frikkie Steyn 15 on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    There is a whole section about rendering winforms in the web client in the programmers guide

    pastedimage1630666086197v1.png

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    Visual Studio winforms don't work on the web client.

    Neither does VBA Userforms.

    Only Dexterity forms work.

    That will not be changing. 

    I am working on a solution to be added to the Visual Studio Integration Toolkit.

    Regards

    David

  • Frikkie Steyn Profile Picture
    Frikkie Steyn 15 on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    Hi

    did you ever fix this. I'm having the same issue.

    I can display message boxes. So the DLL is being called.

    I can actually call a public function in the form and the message will be displayed.

    But I cannot get the form to display

    I'm using GP2020

  • Luz Elena Profile Picture
    Luz Elena 110 on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    Hi Shoaib,

    I am having the same issue. Were you able to fix it? 

  • RE: Visual studio form not opening on WebClient but opening on GP2018

    Also want to add one more thing, best part is i am using microsoft sample project to open in gpwebclient. I assume there is not mistake in code that preventing form to open in webclient.

  • RE: Visual studio form not opening on WebClient but opening on GP2018

    Actually its hitting dll i use dex.ask() it prompts message but when i use form.show() and form.Activate() it didnt work. code is executing successfully but form dont open. I am stuck

  • Jothi Krishnan N Profile Picture
    Jothi Krishnan N 1,869 on at
    RE: Visual studio form not opening on WebClient but opening on GP2018

    hmm...Im not sure if its mandatory but I remember I tried all these when I initially explored it. If you open the config file in XML Notepad 2007(download it), you can view the comments/sections in the file clearly. There are 2 sections for Dynamics and Dynamicsweb. You may want to try to add under both.  Also did you sign the DLL with a Strong Key and copied into the root / addins folder.  

    Also try copying the DLLs into the root folder. I did many trial and error to make it work.

    I dont recall everything I tried. May be someone else who has working webclient with custom DLL can shed some light.

  • RE: Visual studio form not opening on WebClient but opening on GP2018

    Thank you very much sir for your reply. i have also read that part on blogs but i didn't get this thing in any documentation provided.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans