Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Dexterity Trigger_Unregister function?

Posted on by 725

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

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

    Thanks

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dexterity Trigger_Unregister function?

    it is an optional returned integer that uniquely identifies the trigger. This value is used when you want to unregister, enable or disable the trigger individually

    for example:

    ------------------

    l_result = Trigger_RegisterFocus(anonymous('Field' of window Window1 of form Form1), TRIGGER_FOCUS_CHANGE

    , TRIGGER_BEFORE_ORIGINAL , script Script1,Trigger_Number[2] of globals);

    if l_result <> SY_NOERR then

       warning "Focus trigger registration failed for Entry1.";

    end if;

    Script1

    ----------

    tag = Trigger_GetCurrentTag();

    case tag

    in [Trigger_Number[2] of globals]

    if required(window Window1  of form Form1) then

                                  {your operation}

                           end if;

    end if;

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