Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

How do I configure GP 2013 Web Client to load modified forms dll

Posted on by 330

I have a customisation done in VS2012 using C# accessing fields on a modified form. The form was modified using Modifier in GP2013. I added the Dynamics.exe.config reference to my assembly.

However the code is not running in the web client. It works in the full client.

Do I need to add a reference to the Application.Dynamics.ModifiedForms.dll in Dynamics.exe.config? What is the syntax for this?

How do I get a VS Tools addon to run on a modified form in the Web Client?

*This post is locked for comments

  • soma Profile Picture
    soma 24,406 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    Thanks ANNABELH &  PATRICK for all the response.

    Soma!

  • NenadL Profile Picture
    NenadL 105 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    Thanks Patrick, I agree with you, it's my mistake...

  • Patrick Roth Profile Picture
    Patrick Roth on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    Nenadl,

    It makes searching for and finding answers difficult when there are new Questions asked by the not-original poster.  The original poster & I did respond back as you were having similar issues (with the solution) but really you should have asked your own question in a new thread to not complicate the solution in this post.

    But as you now have an entirely new question, this is best asked & answered in a new question and not this one.

  • NenadL Profile Picture
    NenadL 105 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    I have one question more. My .NET based form regularly work in desktop client, but in web client when click in the menu, form will not open. Does anybody has a same problem?

    Thanks a lot...

  • NenadL Profile Picture
    NenadL 105 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    Hi, Annabel you give me a great advice, in VSTDGPReadMe file is explanation.

    Thank you very very much. :)

  • soma Profile Picture
    soma 24,406 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    ANNABELH &  PATRICK,

    Sorry I took so long to reply. Because i tried these in many times but its not working.

    My full process:

    I have created a new project in GP2013 VSTools. My project name is "vendorTemplate", class name is default "AddIns" and the dll name is "vendorTemplate.dll". In this project i have added a menu "vendorTemplate" in Additional menu of vendor maintenance form using AddMenuHandler() function. Once click this "vendorTemplate" menu the new window will open. That window is created myself in this project.

    Now the problem is, In web client once i click that menu the window is not opening. But the project is working fine in client side.

    I have added below line in Dynamics.exe.config within three sections(dynamics, dynutils and DynamicsGPWeb).

    <addin name="vendorTemplate" type="vendorTemplate.GPAddIn,vendorTemplate"/>.

    What is the problem? If i missed any one please help me.

  • AnnabelH Profile Picture
    AnnabelH 330 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    There is a word document in the SDK installation folder that gives you a hint to the dynamics.exe.config. Took me a while to notice it even though it is called "Readme".

    Basically I created my assembly with the name of <mycompany>.<myteam>.<formtomodify> so that would come out like CompanyA.TeamA.VendorMaintenance.dll when compiled. The class that is generated is the GPAddIn default.

    So you need to add this dll to the main GP folder and not the addin folder.

    I took a copy of the dynamics.exe.config file to a separate folder so I could keep copies for version control. Also it doesn't like you editing it in place. Once there open it with notepad or notepad++. If you want the addin to work in both full and web client you need to add the <addin /> tag in both the <Dynamics> tag at the bottom of this file and the <DynamicsGPWeb> tag. Note that the end tags for these Dynamics ones are way at the end of the block of text for the Dynamics main files. I just moved the end tag to its own line and added mine above it.

    So for my above example the tag to add in BOTH places is:

    <addin name="CompanyA.TeamA.VendorMaintenance" type=''CompanyA.TeamA.VendorMaintenance.GPAddIn,CompanyA.TeamA.VendorMaintenance"/>

    The name bit at the front is whatever you want it to be. I used the assembly name for my just to keep it unique. The first bit of the type is the fully qualified name including class. The second bit after the comma is the assembly name without the dll file extension.

    Hope that helps. Sorry I took so long to reply.

  • Patrick Roth Profile Picture
    Patrick Roth on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    Soma,

    The name can be whatever you like as long as it is unique.

    As for the Type, a comment in the dynamics.exe.config file gives guidance on what that should look like right in the config file itself.

    And of course there are existing lines for the ones that Microsoft puts into the file.  Of course the MS ones also have information about version, publisher info, etc.  But you really only need to tell it the class name of your addin and then the file name itself.

    I don't have 2013 on this machine and so cannot pull up my entry in the config file itself.

    But knowing the above and using the GP lines as guidance, you should have the info necessary.

    Just note the warnings I added as well as Typo's and capitalizaton (as was my problem) and it should work fine.

  • soma Profile Picture
    soma 24,406 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    ANNABELH &  PATRICK,

    Please guide me the sample addins line you added in Dynamics.exe.config file.

    eg.

    <Dynamics>      

       <addin name=" " type='' "/>

    </Dynamics>

    Thanks

    Soma

  • NenadL Profile Picture
    NenadL 105 on at
    RE: How do I configure GP 2013 Web Client to load modified forms dll

    It is also GP 2013 web client...

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans