Axaptapedia has an excellent article on how to send data between forms. http://www.axaptapedia.com/Passing_values_between_forms
Microsoft Dynamics Ax
How to read filters from form grid in AX2012
by Bo Jensen •
This part changed in AX2012, because filters are used instead of ranges (see a bit more about them here). You can get filter values by this code: Query q = InventSum_ds.queryRun().query(); QueryFilter qf; int i; for (i = 1; i <= q.queryFilterCount(); i++) { qf = q.queryFilter(i); info(strFmt(“%1: %2”, qf.field(), qf.value())); }
Microsoft Dynamics Ax
X++ code to create and post Inventory Movement Journal
by Bo Jensen •
Following is the sample job to show how we can create and post movement journal by making use of available api’s in the Dynamics Ax.
Microsoft Dynamics Ax
Loop through elements in AOT in AX 2012
by Bo Jensen •
Today I received a request from one of our consultants, who needed an overview of tables in AX 2012 belonging to the “Transactions” tablegroup. So I made this little job, that loops through elements in the AOT, and retrieves the table properties, and then lists tables with tablegroup “Transactions”:
Microsoft Dynamics Ax
Displaying and Saving a Query
by Bo Jensen •
Sometimes it might be useful to display a query you have created in the AOT to the user. After this the user makes changes to the query (adds ranges and sort fields) and you would like to save the query (as changed by the user) to a table in the database, therefore saving the state…
Microsoft Dynamics Ax
Using RunBaseBatchPrintable class
by Bo Jensen •
RunBase framework is used when we develop a class to run an operation within Dynamics AX, such as posting a sales order or used in any data manipulation operation. If we need to batch the operation, we will commonly use the RunBaseBatch framework by extending the RunBaseBatch class. Dialog for a class that extends RunBaseBatch…
Microsoft Dynamics Ax
Sending emails from Dynamics AX
by Bo Jensen •
It’s a common requirement to have Dynamics AX to send emails as part of the business processes such as delivering the invoice/statement to customers by email. Out of box Dynamics AX already has the framework provided in X++ classes for developers to send email using X++ code. There are currently three ways to do so…
Microsoft Dynamics Ax
How To: Directing Reports to Email
by Bo Jensen •
Dynamics AX 2012 Sharing reports via Email has never been easier. The following exercise outlines the process for developing a reporting solution that includes automatic distribution using Email without prompting the user for additional parameter information. Step 1/2: Create a session management class To send reports via Email from code you can use the new…
Microsoft Dynamics Ax
Run, Save and Email Purchase order report through X++ code
by Bo Jensen •
Hi Friends, In this post I will demonstrate how to do below through X++ code. We will take Purchase order report as an example 1. Run a report 2. Save as PDF at local drive 3. Email this report 4. Delete from local drive after email. To perform above task , create a new class…
Microsoft Dynamics Ax
How to send a report via email from Microsoft Dynamics AX
by Bo Jensen •
Hi all! Today I want to show you how to send a custom report via email from AX (it works with an AX client installation and it’s tested for Microsoft Outlook and Novell GroupWise).
Microsoft Dynamics Ax
Sending email via SMTP using X++ and .NET Framework in Dynamics AX
by Bo Jensen •
Sending custom email notifications is a very common requirement for Dynamics AX. The code sample included in this post contains the following features: attaching files, designating email priority setting, specifying To/From/CC recipients, and populating the subject line and body of the email. It’s assumed that you already have an operational SMTP server which is accessible…
Microsoft Dynamics Ax
How to use X++ Delegates in Dynamics AX 2012
by Bo Jensen •
In this post I want to cover some of the core functional aspects of the new delegates feature introduced in AX 2012. X++ delegates expose the publisher -subscriber pattern where a delegate defines a clear contract in a publisher class. This contract is used when an event occurs where the event can be a change…
Microsoft Dynamics Ax
AX 2012 – Security for Developers
by Bo Jensen •
http://axwonders.blogspot.dk/2012/03/ax-2012-security-for-developers-part-i.html http://axwonders.blogspot.dk/2012/03/security-for-developers-part-ii-code.html
Microsoft Dynamics Ax, Business Intelligence
Filter Second lookup based on First Value – Ax 2012 SSRS | Vasanth Arivali’s Space
by Bo Jensen •
Hi Folks, I got one requirement to get invoices of a customer on the particular month range in SSRS Report Dialog. I have achieved that and want share. Here we go…..
Microsoft Dynamics Ax
Ronnie H. Hegelund: AX 2012 X++ compilation from a .NET developers perspective
by Bo Jensen •
The last month or two I have been “forced” to look at X++ and AX2012, and getting started writing X++ is easy, if you have a background as a .NET developer.When you start writing and compiling code in AX, you quickly get frustrated as a .NET developer. Why does it not work, – my “compilation”…
Microsoft Dynamics Ax
Art Of Creation – Dynamics AX Blog » How to print any file in Dynamics AX
by Bo Jensen •
So you need to print some files from Dynamics AX? And it also has to work in batch?Below are 2 methods that will help you do just that.
Microsoft Dynamics Ax
Import Label files ( ALD ) script, using SysLabelFile class
by Bo Jensen •
If you have to import many Label files in different languages into AX 2012, you can use the script below.If the label file doesn’t exists, it will be created at the current level. This operation will overwrite any existing label different from file.
Microsoft Dynamics Ax
Create Alert using X++ codes – Microsoft Dynamics AX Community
by Bo Jensen •
Sometimes Infolog message is not sufficient enough for prompting information to users. It is possible to create alert message using code as an alternative. It is fairly simple to create alert message manually by just inserting a new record in EventTable where all the alert messages are stored. Below is a code snippet for creating…
Microsoft Dynamics Ax
Setup DB Logging in X++ (Updating events) | Explore AX.com
by Bo Jensen •
Setting up AX Database logging via the user interface wizard can at times be a bit of a cumbersome and slow task, especially for tables that are not very common. The job below will simply set database logging for all fields on a specific table. Simply replace “InventSalesSetup” with the table name of your own…
Microsoft Dynamics Ax
There was an error while trying to deserialize parameter http://tempuri.org/:queryBuilderArgs.
by Bo Jensen •
There was an error while trying to deserialize parameter http://tempuri.org/:queryBuilderArgs. The InnerException message was ‘Element ‘http://tempuri.org/:queryBuilderArgs’ contains data from a type that maps to the name ‘http://schemas.datacontract.org/2004/07/XppClasses:SRSQueryBuilderArgs’………………………………….Some times we get the above error while running reports in Axapta 2012. To resolve this issue we need to delete usage data in the AOSserver.