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)

Cross Dictionary Lookup

(0) ShareShare
ReportReport
Posted on by 40

I have seen a lot of posts and blogs for running cross dictionary lookups, but I am having a hard time returning the value.  I understand that the "return to" can not be used when opening the lookup form.  I am trying to do all of this through VBA code. 

If I try continuum, this is my code that I use. 

Set GPApp = CreateObject("Dynamics.Application") 
Dim GPCallBack as new GPCallBackClass
GPApp.RegisterFocusTrigger("'Select Button' of window Salesperson_Lookup of form Salesperson_Lookup", 1, 2, GPCallBack, "SalesPersonLookupReturn")


GPCallbackClass (Class  Module)

Public Sub SalesPersonLookupReturn()

MsgBox "Worked"

End Sub


The message box is not displayed when I click the select button.

I have also tried to create a trigger using pass through sanscript, but for the 4th parameter, the script, I do not already have a script defined in dexterity, I would need to use another pass-through sanscript to create the script.  Is there a way to do that?

I have tried to also use the execute command, but I am unable to determine when the select button is clicked on my lookup.

Any help is appreciated.

*This post is locked for comments

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 July 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