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
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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156