Notifications
Announcements
No record found.
Hi, I'm new to 365FO and I need to modify the Look up method of a field on a form.
I believe that this is done through the Datasource->>Field --> Lookup Reference Method.
But I don't see how to access the code from visual studio.
Can anyone help?
Thanks in advance
One way to customise the lookup is the form handler, this is an example Class > DocuTemplateUploadDialogEventHandlers
If you one the latest platform, then you could use the CoC to extend the Form control lookup method
I have Installed product version : Finance and Operations (10.0.6)
Does that include Coc?
Thanks
Yes.
Hi Brianmaric,
CoC from the platform update 9 of Dynamics AX for Operations.
https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/272325/what-is-chain-of-command-in-d365fo
I am trying to set the field value on the form to some other field value.
I am call the forms data source, but I don't see how to refer to particular fields
You refer to it with data source name and field name. For example MyDataSource.MyField = MyValue. How to get the data source depends on your scenario, which we don't know.
This code give me an error: "the parameter profile does not match the original method"
[ExtensionOf(formdatafieldstr(SalesTable,SalesTable,SiteSalesManager))]Final class NTS_TestDataSource_Extension{ public void LookupReference() {
SalesTable SalesTable; FormDataSource SalesTableDS; FormDataObject SalesTableDataObject;
SalesTableDataObject = any2Object(this) as FormDataObject;
next LookupReference();
SalesTableDS = SalesTableDataObject.datasource();
}
Which line of code gives the error? Does the underlying lookupReference have some parameters? CoC method must have the same parameter profile than the underlying method.
It is this line..
public void Lookup()
Looks like it takes (FormReferenceControl _formReferenceControl) as an argument
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader