Wednesday, January 30, 2019

Create new client Configuration for a Specific layer

This post will guide you through the steps to create a new AX client config file for a specific layer in AX 2012 R3. 
1.     Click Start > Administrative Tools > Microsoft Dynamics AX 2012 Configuration to open the Microsoft Dynamics AX Configuration Utility.
2.     Click Manage > Create configuration. The Create Configuration window is displayed.
3.     Enter a name for the configuration, and then click OK. The configuration is created.
4.     Click the Connection tab.
5.     Verify that the server name, instance name, and port information for the Application Object Server (AOS) are correct.
  • If it is not correct you can click Edit and change it as needed.
  • If there is no server information, click on Add and type in the correct information (Server name is the AOS server)
6.     Click the Developer tab.
7.     Select the Application object layer to open. (USR should be used for user access). Also, we need to provide Development license code for the specific layer(CUS layer in my case).
8.     Click Refresh to update the configuration.
9.     Click Manage > Export configuration to file. The Export Configuration window is displayed.
10.     Save the configuration to your preferred location.

Wednesday, January 2, 2019

steps to access printers on AOS server

Note. This article is for the setup of the demo hyper-v environment and shouldn’t be applied to production Microsoft Dynamics AX 2012 R3 configurations. Obviously you must not muck about with the configuration of your live Dynamics AX environment unless you know what you’re doing, and probably not even then.
The label setup for the new Warehouse management module allows you to define label formats and printers.
Go to Warehouse management > Setup > Document routing > Document routing. Click on New in the Document routing printers fast tab and you’ll notice that the Printer name drop-list is blank:
The reason for this is given in this Technet article, quote “By default, users cannot print documents or reports from a printer connected to a Microsoft Dynamics AX Application Object Server (AOS). You must enable printing in the AOS and client configuration files, as defined in this topic.”
You need to change the AOS configuration file and the client configuration. I’ve logged into the demo hyper-v as ‘admin’ (not administrator) but I’m not entirely sure that that’s necessary. Open the Microsoft Dynamics AX 2012 Server Configuration program by navigating to the start menu and searching for it:
You should see:
The ‘Original (installed configuration) can’t be changed, so Manage > Create configuration; give your configuration and name; and click OK:
Now you can see that we are working in your new configuration, and we can tick the ‘Allow clients to connect to printers on this server’ checkbox:
Click Apply and the system prompts us to restart the AOS:
Click Yes and the system tells you that it’s stopping, and later starting, the AOS. The AOS can take too long to start and you might receive a warning message that you must restart the service manually from the Control panel > Administrative tools > Services, but by the time you get there, the AOS will have started:
The next step is to set the client configuration. This time we need the Microsoft Dynamics AX 2012 Configuration utility:
This should give you:
Same deal as before, we need a new configuration. Click on Manage > Create configuration; give your configuration and name and click OK:
Now we want the Connection tab, and to tick the ‘Connect to printers on the server’ checkbox:
Click Apply and OK and you’re done.
Open Dynamics AX, and back in the Document routing form you’ll see the admin user’s shared printers (the AOS is running as ‘admin’):
Incidentally that default ‘Label’ printer is setup to print to text files, the text file location is shown in the printer’s ‘Printer properties’. So far I haven’t had any success in changing that: