Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Cross Dictionary Lookup

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

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans