Saturday 17 March 2018

Inventory blocking through x++ code in AX7 / D365

Recently I have came across a requirement in which I needs to block the inventory through inventory blocking process. After little bit of research I have develop the job which can achieve my desired requirement. 

Thursday 15 March 2018

Error more than one form was opened at once for the lookup control in D365

In D365 when we use OnLookup event handler for overriding existing lookup implementation by adding new columns or adding new ranges an error occurred "More than one form was opened at once for the lookup control".

This error occured because OnLookup Event it calls super() (base method) and on same time both the lookup opens. The resolution of this error is simple all we need to do is to cancel super call as shown in screenshot.

Error:











Solution:







Monday 12 March 2018

Custom lookup using OnLookup Event Handler in AX7 / D365

To create a lookup on a control (e.g. StringEdit control), override the lookup method or copy the OnLookup event handler of that control. Below is the example of the custom lookup using OnLookup Event Handler in AX7 / D365.


Cancel OOTB validation on data field and field control events in AX7 / D365

In AX7 / D365 like tables, form controls and other element types, form data sources and form data source fields provide framework-level events. Validation events on data field and field controls support invalidating the user-specified values. The following example shows how you can cancel or override validating values on Validate events of form field control or of data fields.

Form data field validation:




From control field validation:




Monday 5 March 2018

Use of .Net Web Browser control in AX2012 & AX7 / D365

In AX2012 & AX7 / D365 we can use WPF or in general .net controls. Microsoft made a great effort to integrate the .NET environment and AX, not only from a run-time perspective but also for developers, easy event handling and so on. In this example I have add web browser control pro-grammatically and will try to Navigate Website through web  browser control.











Reference: Tutorial: WPF User Control for AX2012

Key Updates in Dynamics 365 F&O for Version 10.0.39

Here’s a concise summary of the  platform updates  in  Microsoft Dynamics 365 Finance & Operations version 10.0.39 (March 2024) : 1- Add...