Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to add a lookup form and bind a control to it?

(0) ShareShare
ReportReport
Posted on by

Hi

I have used the following instruction to add a lookup form and bind a control to it.

I just cant see where the last 2 methods configureCustomerLookUp(FormStringControl stringControl) and private void CustomerLookUp(FormStringControl stringControl) are located.

https://community.dynamics.com/ax/b/alirazatechblog/archive/2014/08/27/how-to-use-ax-form-as-lookup-in-dynamics-ax-2012

Are they on the form that calls the lookup form?

Kind regards

Mahyar

*This post is locked for comments

  • Mark Kopan Profile Picture
    245 on at
    RE: How to add a lookup form and bind a control to it?

    How would you perform a similar action on SalesTable Form DS:SalesLine.ExternalItemId LookUp method. CustVendExternalItem has been modified for Steel Industry client. Combination of Customer, ExternalItemId , InventDim and  Revision Number. Need it to return ExternalItemID to salesLine grid as well as the RevisionNumber and InventDim. Customer may have Same ExternalItemID with n.* Revision Nums. Using custom lookup form utilizing args and FormStringControl, and FormRun for the call. how to return more than 1 field and update SalesLine.ExternalItem and Sl.RevNum when closeSelect fires?  thanks in advance

  • Community Member Profile Picture
    on at
    RE: How to add a lookup form and bind a control to it?

    Hi Jens

    thanks for your help.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: How to add a lookup form and bind a control to it?

    Just overwrite the lookup() method of your control and put the code of the CustomerLookUp() method from the example there.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
Zain Mehmood Profile Picture

Zain Mehmood 6 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans