Tagged: AX

AX7 Extension Form Initialized Copy Handler 0

AX7 / D365 Extensions: Extend the Init Method on a Form

Today’s plan? I would like to extend the init() method of a D365fO form. The goal is to get the selected line from the caller after the newly opened form is initialized. Form Init Method Extension Like said before, I would like to get the callers record when opening a new form. In this example I will retrieve...

D365 Class Extension IntelliSense 0

AX7 / D365 Extensions: Add a Method to a Class

Today I want to start a small series of blog posts. In this series I would like to show you how to extend AX 7 / D365 objects, without overlayering them, starting with an easy class extension. Class extension 1.0 For this demo I created an extreme simple class, it only contains one method, which just puts out...

AX2012 Open Folder XPP 0

AX 2012: Open a Folder with X++

In this post I want to show you a quick and dirty way to open a folder via X++ in AX 2012. Open a Folder in AX 2012 I added the following code at a Button in the clicked method like this. All it takes to open a folder via X++, is the DocumentManagementHelper class and its static method...

AX2012 Threading Slow Method 0

Simple Threading in AX 2012

In this post I want to show, how easily you can utilize the Thread class in AX 2012. Simple Thread example First we want to setup a new class. Next we want to add two static methods, one “slow” method which will use a sleep to simulate a lengthy runtime and one “fast” method. The idea here is that...

Get the client name of your (rdp) maschine 0

Get the Client Name of your (Remote) Machine in AX2012

In this short post I want to highlight how you can get the name of the client which is connected to AX 2012, even if you run your session via a RDP connection. For this purpose I wrote a small Job, that outputs the client name in an Infolog. Code The first Info invokes the static global method...

Get User, Company and System Language in AX2012 0

Get User, Company and System Language via X++ in AX 2012

In this quick post I want to show you how to get the actual user language, the language of the current company and the system language in AX 2012 via X++. Languages in AX 2012 To get the actual company language you can call the static method languageId from the CompanyInfo table, which will return a LanguageId. (CompanyInfo::languageId –...