Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Dexterity Trigger_Unregister function?

Posted on by 725

I ask this question before but I think it was a little too close to Convergence.

My application adds a menu item to the Maintenance menu to reconfugre a SQL table.  It only needs to be run once and then I would like to remove the menu item.  I've looked at all the manuals for Dexterity and Googled/Binged to find out how to get the "tag" that the Trigger_Unregister function requires.  The examples say that the tags are stored in the Trigger_List[] of Globals.  So far I'm not having much luck on locating Trigger_List.  The only reference to it is in the samples in the docs.  I'm know it's going to be something simple but I just can't find it.

*This post is locked for comments

  • veeyeskay Profile Picture
    veeyeskay on at
    Re: Dexterity Trigger_Unregister function?

    Hi bwholl

    Glad my explanation was of assistance to you. Let us know if you have further questions.

  • bwholl Profile Picture
    bwholl 725 on at
    Re: Dexterity Trigger_Unregister function?

    Thanks, that looks like what I was looking for.  I searched all the documents I could find and never saw anything about it.

  • Suggested answer
    veeyeskay Profile Picture
    veeyeskay on at
    Re: Dexterity Trigger_Unregister function?

    Hi bwholl

    If you take a look at the trigger registering syntax, there is an optional parameter called tag (which is the last parameter for the trigger. This is an integer value which assigns a unique integer value for every trigger registered in the system, beginning from 1, 2, 3 and so on.. We can create an array index variable called Trigger_List[] and add it to the globals and use that array global as the tag for each trigger registered (i.e.) Trigger_List[1] of globals for the first trigger, Trigger_List[2] of globals for the second trigger and so on...

    This way, if you want to deactivate or activate a specific trigger, you can reference this trigger using the Trigger_List[] of globals array index that you have used when registering the triggers.

    Hope this helps.

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