Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Accessing modified forms in another dictionary from Dexterity

Posted on by 725

So far this one has me stumped.

We have a modified PA_Contract_Maintenance form in the Projects module with a couple of added local fields for accept date and close date.  Currently we use VBA to populate and save these fields but we want to move the code to Dexterity.  I've searched the web and mostly get Dave Musgrave's posting on cross dictionary development.  I got the GetWindowValue and SetWindowValue functions but they don't work on those fields.  I'm just curious if this is possible in Dexterity or we should be looking at something other way.

*This post is locked for comments

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Accessing modified forms in another dictionary from Dexterity

    David thanks for your replies but still few things are going in my mind. :(

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Accessing modified forms in another dictionary from Dexterity

    Hi

    You can't ship an altered version of an application dictionary.

    How do can a developer support their product if their core dictionary had been modified by another developer?

    David

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Accessing modified forms in another dictionary from Dexterity

    Oops I thought you are in USA.

    So you mean shipping a modified version with the original product information and product id is something against the license?

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Accessing modified forms in another dictionary from Dexterity

    Hi Almas

    It is 9pm in Perth.

    The issue is shipping a modified project application dictionary which you would have to do if you used Dexterity. Shipping a form edited with Modifier is fine as it does not change the application dictionary.

    David

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Accessing modified forms in another dictionary from Dexterity

    thanks David for your reply. That's a quick one and I think it still morning in your part of world and you are explaining and replying my stupid stubborn question ;-)

    You explain very well.And I am sure you are righta nd know more than anyone else about dexterity on this universe.lol

    but

    While merging let say project accounting dictionary we are adding some field on cost category window we are not doing any change in core dictionary code, but adding the functionality.is it just a matter of modified form created as a result of vstools or modifier? Does license agreement insist having modofied dic?

  • Suggested answer
    Josh P Profile Picture
    Josh P 2,895 on at
    RE: Accessing modified forms in another dictionary from Dexterity

    Hi All,

    David is correct in the methodology is based on your comfort and expertise in .net or Dexterity. Unless something has changed, you can actually use Visual Studio integrations to display custom forms. There is dynamic and custom rendering capabilities for Silverlight forms. The difference I am aware of being having a set list of available controls to use vs needing to handle all the messages and hookups from the addin to the Silverlight form. 

     

    Here is a link on the documentation for it: https://msdn.microsoft.com/en-us/library/dn386081.aspx

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Accessing modified forms in another dictionary from Dexterity

    Hi Almas

    When using VBA or VSTools you a created a modified version of the window with Modifier. This modified window is stored in a custom forms dictionary. The original window in the application dictionary is not altered in anyway. This is OK.

    When using Dexterity against Dynamics.dic core dictionary, your modified form becomes an alternate window in your dictionary. Again, the original window in the application dictionary is not altered in anyway. This is OK.

    If you use Dexterity against a third party product (there are unsupported methods to do this). You are actually modifying the original window and have to ship a modified version of the third party dictionary. Shipping a modified version of another developers dictionary is the part that breaks the license agreement.

    David

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Accessing modified forms in another dictionary from Dexterity

    <<<<While it is technically possible to add local fields to a 3rd party window using Dexterity, it means that you have modified a dictionary directly and that is not allowed under the license agreement.>>>>

    David I always wanted to know "how is it not allowed under the license agreement?" . When using VSTools we are using the same modified form and then adding our code over it. When merging dictionaries we did the same take the same form and add code over it, without changing anything in core dictionary.

    Why one thing is okey with VSTools and not okey with Dexterity tool?

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Accessing modified forms in another dictionary from Dexterity

    To stay web client compatible, you can use VSTools on Modified windows.

    For new windows, I would use Dexterity.

    Basically, I would do everything in Dexterity, except the bits that can't be done in Dexterity.

    David

    PS: I do have a Dexterity bias, but also known when other tools are better suited to a job.

    PPS: I always say when asked what is the best method: "If a solution works, then it is correct."

  • bwholl Profile Picture
    bwholl 725 on at
    RE: Accessing modified forms in another dictionary from Dexterity

    Thanks, we got to this point not long after posting.  VSTools is the answer.  We backed off VSTools for awhile because the word before GP 2013 was that the Web Client would not support VSTools.  We now are working on moving most of our VBA code to VSTools.  I agree on mixed development environment, sometimes Dexterity is the way to go but there are cases where it really is only possible to do it with VSTools.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans