Monday 23 February 2015

Windows event logs in EP ax 2012 VM

The clocks on the client and server machines are skewed

-> Run the cmd -> w32tm /resync
->  Restart the VM -> I hope ur problem get resolve

Thursday 19 February 2015

AX 2012 - Create a new AX User using SQL Server

Hi

If you want create a new AX User without using the AX Import, is enough manage the following SQL Tables:

- Populate the USERINFO table
- Duplicate the records in the Table SECURITYUSERROLE link to the Admin user changing the User_ Column with the new userid.

Enjoy!


Tuesday 17 February 2015

Using the infolog in the Enterprise Portal ax 2012

In the portal you can access the infolog by using the Proxy of the Enterprise Portal.

using Proxy = Microsoft.Dynamics.Framework.BusinessConnector.Proxy;
Proxy.Info objInfoLog = new Proxy.Info(this.AxSession.AxaptaAdapter);

Now, when you want to write something to the infolog you need to give a Enum with it,
so the portal knows if the message you want to show is a info, warning or error.
So pass through Proxy.Exception.Info, Proxy.Exception.Warning or Proxy.Exception.Error.

1.objInfoLog.add(Proxy.Exception.Warning, "My warning");

So in short thing you should keep in mind while using the Infolog-class:
Use short & informative messages
Choose the righty message level (info, warning, error)
Use actions, this simple trick is verry usefull for end-users
Limit the number of messages you send to the Infolog-dialog