23 July, 2015 (15:47) | Dynamics AX | By: Howard Webb
Sometimes we cannot make a query fully represent what we want. For example OR statement can be very difficult. To achieve we can use strings to produce the range as described here. It is also worth remembering that there are a number of methods to help us build ranges, these can be found in the […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, Query, Range
23 July, 2015 (13:46) | Dynamics AX | By: Howard Webb
I needed to store a password in AX today and as it has been a while and I forgot, I thought I would post a blog to reference the next time. While there is a password stringEDT we should really be using a CryptoBlob as this will store the password as binary data and will […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, Encryption, Password
Comments: 2
12 June, 2015 (14:41) | Dynamics AX | By: Howard Webb
When posting an invoice, delivery note…etc. from a sales order a common form is used called SalesEditLines: This form is quite complex and uses several framework classes to build itself and the data within it. Recently I was asked to add a new range to the query that builds the results in the […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, Query, Sales Invoice, SalesEditLines, SalesEditLinesForm, SalesFormLetter, SalesFormletterParmData, X++
Comments: 1
25 March, 2015 (14:25) | Dynamics AX, SSRS | By: Howard Webb
Hi, Sometimes we need to add fields to a report that uses transactional data. Normally these have their own transactional tables such as CustInvoiceJour, however this report is different. If you check the method \Classes\PurchPurchaseOrderDP\createData you can see that the DP class uses PurchLineAllVersions and PurchTableAllVersions to get its data for the report. We will […]
Tags: 2012, adding fields to Purchase order confirmation, AX, Dynamics, Dynamics AX, Dynamics AX 2012, Purchase order confirmation, PurchLineAllVersions, PurchPurchaseOrder, PurchPurchaseOrderDP, PurchTable, PurchTableAllVersions, PurchTableArchivedVersions, PurchTableHistory, PurchTableNotArchivedVersions, report, SSRS, SSRS report, X++
Comments: 4
10 March, 2015 (11:22) | Dynamics AX, SSRS | By: Howard Webb
Sometimes we would like to run an SSRS report via code to produce a report without user interaction or to call it during a process. To do this we could call the menu item that launches the report, but more often than not we would like to prepopulate it or call it without user interaction. […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, report, SRSPrintDestinationSettings, SrsReportRunController, SSRS, SSRS report, SSRS report via code, X++
30 January, 2015 (14:48) | Dynamics AX | By: Howard Webb
Recently we have had an issue whereas in the AX client the “File” in the top left drop down was replaced with the text “MMANDBA+”, the tools option was not available and there were a number of other odd errors: A few co-workers investigated this and found that the issue is down […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, MMANDBA+
Comments: 1
8 September, 2014 (15:02) | Dynamics AX | By: Howard Webb
I was on site with a 2009 customer the other day who were starting to develop their own reports. Being quite a few years since I have done it I had forgotten this trick to get the report name that is being run. If you modify the method \Classes\SysReportRun\run and include this line: […]
Tags: 2009, AX, AX 2009, Dynamics, Dynamics AX, report, X++
29 August, 2014 (14:12) | Dynamics AX, SSRS | By: Howard Webb
If you need to reprint a sales invoice there is a method on the CustInvoiceJour table called printJournal. Calling this method will print using the original print management destination but you can override the destination by passing in an instance of SalesInvoiceJournalPrint. Below is an example of calling it and forcing the print destination to […]
Tags: 2012, AX, custInvoiceJour, Dynamics, Dynamics AX, Dynamics AX 2012, print destinations, printJournal, report, Sales Invoice, SalesInvoiceJournalPrint, SQL server Reporting services, SSRS, SSRS report, X++
Comments: 1
17 August, 2014 (15:53) | Dynamics AX | By: Howard Webb
Hi, This post is more for my memory more than anything else. If you need to get the number of records returned in a query or a query run you can use the following method: SysQuery::countLoops(QueryRun) This will return the same result as looping through the query using queryRun.next()
Tags: 2012, AX, countLoops, Dynamics, Dynamics AX, Dynamics AX 2012, Query, QueryRun, SysQuery, X++
10 June, 2014 (11:02) | Dynamics AX, SSRS | By: Howard Webb
One of our customers produce multiple PDF files for external customer statements. They wished to rename the file with the customer account number. To do this we have edited the following method: \Classes\CustAccountStatementExtController\runPrintMgmt I declared the following variables To make sure that I get just the file name correctly I have used […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, External customer statement, filename, filenamesplit, PDF, print destinations, runPrintMgmt, split file name, SSRS, SSRS report, X++
Comments: 2