Skip to main content

Posts

Showing posts from November, 2013

Microsoft Dynamics AX 2012 Reporting - tips how to improve performance

Czesława Langowska Vliegen   18 Sep 2013 3:12 AM  0 There are some tips we can use to improve performance of reports for Dynamics AX 2012. Use static reports. The deployment of static reports is described here:  http://technet.microsoft.com/en-us/library/hh496446.aspx  In this way we will safe several calls to Metadata service to get labels values and correct formatting of dates and numbers. Install application hotfix KB 2879661 which fix the situation when first generation of a report after Dynamics AX client restart takes long. This happens for each user. Newest kernel . Hotfixes for performance improvement are included in new kernels that are released; sometimes there is a dramatic impact on performance. In the morning a first report generation takes a lot of time SSRS uses session pooling. The first request that comes in from a user – a session will be created for them within the AOS services. Each user gets a session cached on the AOS service...

Using the Cross company feature from the Business Connector.

Peter Villadsen   19 Dec 2008 8:59 PM  1 In Ax 2009 the new cross company feature was introduced. It allows the programmer to specify a container containing strings denoting company names to the crosscompany hint: container c = ['dat', 'dmo']; select crosscompany: c * from custtable where custtable.Name == "Jones"; That is all very well in X++, of course, but how do you handle it when accessing data through the business connector? The first approach would be to do something like the following: AxaptaRecord r = axapta.CreateAxaptaRecord("CustTable"); ax.ExecuteStmt("select crosscompany: ['dmo', 'dat'] * from %1 where %1.Name == 'Jones'", r); However, that will not work: The argument to the crosscompany hint is not an expression of type container, it is a variable of type container. Hence you cannot provide arbitrary expressions, only variable references. This was done to make the implementation of the ...

Issues concerning X++

Peter Villadsen   19 May 2011 5:29 PM  0 I was looking at the API that we publish for the X++ compiler, and it struck me that it would be really easy to implement a script host for X++. This is a program that allows you to execute arbitrary X++ code that is stored in files in the file system. In this way, you can use X++ as a systems programming language, starting things at particular times etc. I thought it would be fun to see what it takes to implement that command line tool. In the spirit of sharing, I am listing the C# code below. It is, after all, only just over 100 lines of code. Let's imagine that we have a file called MyFile.xpp containing the following: real f(int i, real r, str s) {     ;     System.Console::WriteLine("Hello world");     return i + r + strlen(s); } With the script host installed, you can do things like: C\> XppScriptHost  MyFile.xpp 3  3.141 "I am an argument". The script host w...

How to install CU7 for Microsoft Dynamics AX 2012 R2

Sally Erickson [MSFT]   11 Nov 2013 6:50 AM  0 CU7 for Microsoft Dynamics AX 2012 R2 is now available! We’ve recently blogged about its new features and the resources that are available to help you learn more about it. (In case you missed those blog posts, click  here  and  here .) But today I want to focus on one thing, and it’s kind of important: how to install it. There are two ways to install CU7. The method that you should use boils down to how you answer this question: Is Microsoft Dynamics AX 2012 R2 already installed in your environment? Yes, AX 2012 R2 is already installed If AX 2012 R2 is already installed, use the Update Wizard and complete the update process to apply CU7. The process looks like this: Get ready for CU7: Review the release documentation. Download the files. Apply CU7 as an update: Prepare for the update. Install and analyze updates. Restart the AOS and IIS. Reinitialize the model store. Complete the s...

Cumulative update 7 content now available for Microsoft Dynamics AX 2012 R2

Cumulative update 7 for Microsoft Dynamics AX 2012 R2  is now available on CustomerSource and PartnerSource and we've posted new content to support it on  TechNet  and  MSDN . To view details of the supporting content that is available for the new features in CU7, see  What's new in Microsoft Dynamics AX 2012 R2 cumulative update 7 . Also, the New, Changed, and Deprecated features guide is now available as individual topics in the  Microsoft Dynamics AX 2012 library  on TechNet. The guide has been thoroughly updated, so take a look! New features for each audience in CU7 include the following: Application users Module updates:  A number of features have been added for application users, particularly in the following modules: Accounts payable, Accounts receivable, Budgeting, Fixed assets, General ledger, Human resources, Inventory and warehouse management, Payroll, Procurement and sourcing, Product information management, Production contro...

Configure email functionality in Dynamics AX 2012

Sally Erickson [MSFT]   14 Oct 2013 7:19 AM You can configure Microsoft Dynamics AX to automatically send email notifications to users when specific events occur. For example, Dynamics AX can send email notifications to users when documents are assigned to them for approval (as defined by a  workflow ), or when sales orders are canceled (as defined by an  alert rule ). To configure email functionality in Microsoft Dynamics AX, you’ll need to connect Dynamics AX to an SMTP mail server, enter an email address for each user, set up a batch to send the email messages, and create email templates for the specific features that you’re using (such as workflows and alert rules). The process looks like this: For step-by-step instructions on how to set this up, see this topic on TechNet:  Configure email functionality in Microsoft Dynamics AX . For instructions about how to set up email and address settings for customer contacts, see  Set up collections...