Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

How to use Dexterity code for GP2016

Posted on by 140

Hi ,

I have added one custom filed on form Tax_Detail_Maintenance. Now I want to save the record in my custom table with this field while clicking on Save button of form Tax_Detail_Maintenance.
But it is not work. Even though when I wrote the script on Save Button or Save Record or DB trigger. It is not run. Do you have any idea how to use dexterity code in this case.

Thanks,
Tanuja

*This post is locked for comments

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,928 Most Valuable Professional on at
    RE: How to use Dexterity code for GP2016

    Does it work in test mode?

  • Verified answer
    Tanuja Patel Profile Picture
    Tanuja Patel 140 on at
    RE: How to use Dexterity code for GP2016

    Dear Mr. David,

    Thanks for your quick response.

    I have tried the script as you have mention. But in my case It was not work. It might some problem in my client dictionary or database. Because same script is working with other client case.

    Thanks & Regards,

    Tanuja

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,928 Most Valuable Professional on at
    RE: How to use Dexterity code for GP2016

    Hi Tanuja

    This should work with a focus trigger after the Save Record change script. Check that the value of Save Record is true, if not abort as the save failed.

    The trigger should be registered in the Startup script.

    Please provide the trigger registration you are using so we can see what is happening.

    Try putting a warning command in your trigger handler to see if it I firing when you save.

    You should also be using the methods to protect from Illegal Address Errors, discussed in the first section of

    blogs.msdn.microsoft.com/.../quick-tip-how-to-create-conditional-triggers-in-dexterity

    David

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans