web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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 87

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

  • Dave Dusek Profile Picture
    Microsoft Employee on at

    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.  

  • Brent Olsen Profile Picture
    87 on at

    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.  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans