How to work on containers and its functions? – All 7 functions

How to work on containers and its functions?   Scenario: By using container functions, here I am explaining how to add, modify, remove and search for email address.  High Resolution steps  Detailed Resolution steps  Step 1: Create the runnable class to store the multiple Email-id’s in the container.  Code Snippet:  Code:  class ContainerExampleRunnable extends RunBase { public […]

How to Auto Populate Line Numbers in Lines when Creating a New Line in D365 FO

How to auto-populate Line-Numbers when creating a new line in D365 F&O?  Scenario: After creating a record, The Line Number field should automatically populate with values when creating a new line.  High Resolution steps  Detailed Resolution steps  Step 1: override the initValue() method in the form data source level.  By override the initValue() method in the […]

How to Override a Form Data Source Field Lookup Method in D365 F&O

How to Override a Form Datasource field Lookup method in D365 F&O?  Scenario: The lookup field should show only active material IDs from the material master table. Inactive or obsolete material IDs should be excluded from the lookup. This ensures users can only select valid, active materials, maintaining data integrity and correct material selection.  High […]

How to Enable / Disable Button in Standard form using X++ Coding?

 You need to enable or disable a button on a standard form based on certain conditions, such as:  Introduction: In X++, enabling or disabling buttons in a standard form (also known as a form or a dialog in Dynamics AX/365) is typically done by manipulating the button’s properties within the form’s code. This can be […]

How to Reactivate/Repatch Windows that is Expired in VM using Commands?

How to reactivate/re-patch the windows license in ON-premises Virtual Machine using Command prompt? Scenario: If the windows license is expired in VM we can do reactivate the license using Rearm command in the command prompt. High Resolution steps Detailed Resolution steps How to Reactivate or Re-patch an Expired Windows License in a VM Using Command […]