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 :
Supply chain | Supply Chain Management, Commerce
Suggested answer

How to override a lookup event handler which is already there

(1) ShareShare
ReportReport
Posted on by 465
Hi People,
 
We have come across a issue where there is a String form control in out of the box form and a OnLookup event handler is written against it by Microsoft. Now, we have a requirement to have a different lookup for the control and when we write a OnLookup event in our model, both the events are getting triggered and it is throwing an error. So, Is there a way that we can stop the OnLookup event from Microsoft?
 
Regards,
Verma MC
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    283,862 Test role Public on at
    How to override a lookup event handler which is already there
    Hi Verma,
     
    There is no option to override the coding. As a workaround, you can make the current control not visible and add a new control for the JournalName field. This will not stop users from personalizing the form and make the original field visible, unless you restrict users from making personalizations on this form.
  • VermaMC Profile Picture
    465 on at
    How to override a lookup event handler which is already there
    Is there any feasible approach for this one?
     
     
  • VermaMC Profile Picture
    465 on at
    How to override a lookup event handler which is already there
    Hi everyone,
     
    Anyone has any suggestions on this one?
  • VermaMC Profile Picture
    465 on at
    How to override a lookup event handler which is already there
    Thanks for the response, Andre.

    The lookup is on PriceDiscAdmTable form. The lookup is on JournalName form control. There is a Custom flags that the business want to add to the lookup. Based on those flags there will be some custom ranges will be applied to the journal name lookup. MS has already added some code on the control's OnLookup event to override and cancel the lookup that the control gets from table field EDT. So, we are getting an error as both are getting called when we try that lookup.
  • André Arnaud de Calavon Profile Picture
    283,862 Test role Public on at
    How to override a lookup event handler which is already there in d365fo
    Hi Verma,
     
    Can you mention the object where you need another lookup? Is the lookup fully created with x++ coding or is a lookup form used here? What is the exact business reason for another lookup? 

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard > Supply chain | Supply Chain Management, Commerce

Featured topics

Product updates

Dynamics 365 release plans