Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

How do I get a cross dictionary trigger to fire a trigger in the core dictionary?

(0) ShareShare
ReportReport
Posted on by 85

I have some dex code which validates the Item description in item maintenance.  Works great until they "Copy" an item using the Copier Series 3rd party product (yeah I know, its a GP product) and then I lose context and my code doesn't run.  What's the easiest way to evaluate the item description (gp Item maintenance) in the context of a 3rd party form trigger and force the validation?

I've tried adding post triggers to the Copy button but when it fires it has no parameters (Support Debugging Tool) so I assume that it has yet to populate the Description field when fired or the trigger doesn't have context.

*This post is locked for comments

  • Brent Olsen Profile Picture
    Brent Olsen 85 on at
    Re: How do I get a cross dictionary trigger to fire a trigger in the core dictionary?

    Thanks Dave.  The script log shows that after the copy button runs and the copier window closes it runs a variety of windows scripts on the IV maint window, do I want to trigger off one of those?  I also tried a cross dictionary trigger on the copy window post but I still don't have focus/context with the IV Maint at that point.  

  • Dave Dusek Profile Picture
    Dave Dusek on at
    Re: How do I get a cross dictionary trigger to fire a trigger in the core dictionary?

    You don't really mention where your code is running?  Do you have a focus trigger on something?  Usually, in this case what you want to do is turn your dexterity script log on when you do the copy so you can see what code the Copier series is running.  Then, sometimes you can trigger off of that, or you can move your trigger so it works with Copier.  You don't normally want to trigger on buttons because after the button change script runs, the window is usually clear so you can't get the data.  

    In this case, you will probably need a procedure/function trigger on a Copier script but you will need to do a script log to know for sure.  

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans