26 January, 2016 (15:00) | Dynamics AX | By: Howard Webb
I’ve recently been asked to develop a mod to create a load, load line and a shipment for a SalesLine record from code. I had a quick look and could not see anything on the internet so below is the code I used. Sadly it seems that the shipment table does not have any init […]
Tags: 2012, AX, create load, create shipment, Dynamics, Dynamics AX, Dynamics AX 2012, Load, Microsoft Dynamics AX 2012 R3, SalesLine, shipment, TMS, Transportation management (TMS), Warehouse and Transportation management, Warehouse management (WHS), WHS, WHSandTMS, WHSLoadLine, WHSLoadTable, WHSShipmentTable, X++
11 January, 2016 (11:41) | Uncategorized | By: Howard Webb
As we all know that moving forward we should really be making better use of the SysOperationFramework. Having a little more time over xmas I decided to use the framework in a mod I was doing. The mod called for a new export to excel without using BIS. There is a Microsoft white paper about […]
Tags: 2012, AX, DataContractAttribute, DataMemberAttribute, Dynamics, Dynamics AX, Dynamics AX 2012, SysOperationFramework, X++
4 December, 2015 (20:16) | Dynamics AX | By: Howard Webb
I’ve recently needed to validate if a string was a colour hex value. There was not a standard method I could find to check (although I am convinced there must be a .net class I can use) but as speed was of the essence I wrote my own:
Tags: 2012, AX, color, colour, Dynamics, Dynamics AX, Dynamics AX 2012, hex, validate, validation, X++
27 November, 2015 (14:37) | Dynamics AX | By: Howard Webb
I needed to create a report which gathered the totals for a pending purchase invoice. Investigating the totals form You can see that it uses the class PurchTotals to calculate the total values. However this uses a PurchParmUpdate record, and at this point a permanent record in the table is not created yet. To get […]
Tags: 2012, AX, Dynamics, Dynamics AX, Dynamics AX 2012, Pending Invoice, PurchFormLetter, PurchParmUpdate, PurchTotals, report
15 September, 2015 (09:59) | Dynamics AX | By: Howard Webb
Recently a customer has asked us to develop a way to produce a sales line which contained an item that fully configured via product configurator. For those that are unaware of the process if an item is selected that is configurable you can answer a number of “questions” to allow configuration of an item via […]
Tags: 2012, AX, configurator, configure sales line, Dynamics, Dynamics AX, Product configurator, sales line, X++, XML
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++