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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

In Dexterity is it possible to add a trigger to an alternate form in another dictionary

(0) ShareShare
ReportReport
Posted on by 727

I am trying to ad a trigger to a button in a modified RM_Customer_Maintenance form that is in the Project Acccounting dictionary.  I have tried using Trigger_RegisterFocusByName but with no luck:

Trigger_RegisterFocusByName(258,"'(L) CopyAddress' of window RM_Customer_Maintenance of form RM_Customer_Maintenance",TRIGGER_FOCUS_POST, TRIGGER_BEFORE_ORIGINAL, script RM_Open_Customer_Copy)

I've used the SDT to look at the resources but it doesn't see the modified form.  Right now I'm using Trigger_RegisterForm to add it to the Additional menu but it is replacing some VBA code that ran off a button, so I have some retraining issues with users.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    chadbruels Profile Picture
    1,588 on at

    It is certainly possible to register a trigger for a resource in a third party dictionary using RegisterFocusByName, I have done it in Human Resources. Do you receive an error?

    I do not have a Project Accounting dictionary to examine, but I get the sense that as long as the target of your trigger is in the PA dictionary it should work. You did use the language "alternate" and "modified". Is the field in the PA dictionary or is that form further altered with Modifier to add the field? If it is added with Modifier then no, I do not believe a Dexterity trigger would work.

  • bwholl Profile Picture
    727 on at

    No errors, just no response.  Yes, it is an added button on a modified form.  I've done it also but never to a modified cross dictionary field.  I knew I was in trouble when SDT resources could not see the field.  This is a case where you can do something in VBA that Dexterity can't do.  The users are just going to have to get used to using the Additionals menu.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans