Sending emails from AX has been somewhat of a pain when it tries to use Outlook. This post is a simple code modification to one method in \Classes\Info\reportSendMail. I did not develop this code, I merely tweaked it. The original poster’s blog has disappeared, and I can only find non-working remnants all around the web…
Tag: X++
Microsoft Dynamics Ax
Sending a report as email in X++
by Bo Jensen •
http://daynamicsaxaptatutorials.blogspot.dk/2010/07/sending-report-through-email-in-axapta.html
Microsoft Dynamics Ax
Microsoft Dynamics Ax: How to pick and post packing slip
by Bo Jensen •
See here how to register a new InventPick and post a packingslip
Microsoft Dynamics Ax
Unbalanced X++ TTSBEGIN/TTSCOMMIT– How to recover from this error
by Bo Jensen •
If you end up running some code in Ax that have an uneven number of ttsBegin/ttsAbort calls you will end up with the following error message To recover from this annoying problem you can run this small job to automatic reset the ttsLevel to 0 in order to make Ax work properly again static…
Microsoft Dynamics Ax, SQL Reporting Services
Playing with SSRS report in dynamics ax 2012
by Bo Jensen •
How to print the SSRS report in dynamics ax 2012 from code. SrsReportRun srsReportRun; // initiate the report. srsReportRun = new SrsReportRun ("InventTruckTransactionReport.PrecisionDesign1"); srsReportRun.init(); srsReportRun.reportCaption("InventTruckTransactionReport.PrecisionDesign1"); // set parameters name, value. srsReportRun.reportParameter("TruckTransDS_JournalId").value("000161_070"); // suppress the dialog srsReportRun.showDialog(false); if( srsReportRun ) { // run the report srsReportRun.executeReport(); } How to save the SSRS report…
Microsoft Dynamics Ax, SQL Reporting Services
Ax 2012 Deploy reports through code « Shashi's Ax.Net Space
by Bo Jensen •
These lines deploys SSRS Reports with X++ Code – Remember not to run this code in CIL or you will get runtime error. SRSReportManager srsRptMgr = new SRSReportManager(); SSRSReportConceptNode node = new SSRSReportConceptNode(); node = TreeNode::findNode(@"SSRS ReportsReportsSalesInvoice"); srsRptMgr.deploymentStart(); srsRptMgr.deployReport(node); srsRptMgr.deploymentEnd(); Ax 2012 Deploy reports through code « Shashi’s Ax.Net Space
Microsoft Dynamics Ax
How to loop through a Map in AX 2012
by Bo Jensen •
Map iim = new Map(Types::Integer, Types::Class); MapIterator it; // Add some elements into the map iim.insert(1, new query()); iim.insert(2, new query()); iim.insert(4, new query()); // Create a map iterator it = new MapIterator (iim); // Print "[int -> class] iterator" print it.definitionString(); // Go on for as long as elements are found in the…
Microsoft Dynamics Ax
Dynamics Ax Musings: X++ in the .NET CLR : Life in the Fast Lane
by Bo Jensen •
You’ve heard it by now. In Dynamics AX 2012, X++ can actually run in the .NET CLR. What I’ve often heard is “X++ running on the server runs in IL”. Well, that is somewhat true. But it doesn’t mean setting your classes or menu items to “RunOn Server” makes them run in IL. So what…
Microsoft Dynamics Ax
Create Progress bars in Dynamics AX [startlengthyoperation, SysOperationProgress,Animations ]
by Bo Jensen •
Create Progress bars in Dynamics AX [startlengthyoperation, SysOperationProgress,Animations ] « Sreenath Reddy G – Dynamics AX Consultant’s Blog
Microsoft Dynamics Ax
Connecting MSSQL DataBase with X++ Code.
by Bo Jensen •
Sometimes we need to connect to DataBases other than the Axapta DataBase. So let us explore how it can be done with X++ code.
Microsoft Dynamics Ax
X++ CODE TO READ MS OFFICE WORD DOCUMENT
by Bo Jensen •
Use the below job if you want to read text from MS Word document in Dynamics Ax 2009.
Microsoft Dynamics Ax
DAX 2012 Data Model – Global Address Information
by Bo Jensen •
In 2012 address table is obsolete (no longer used) and new tables have been introduced which follow normalization and avoid storing of redundant data. So this post basically – Describes about new data model – X++ job to illustrate how address and contact information can be migrated to AX 2012.
Microsoft Dynamics Ax
X++ code to write data to XML File
by Bo Jensen •
X++ code to write data to XML File
Microsoft Dynamics Ax
X++ code to Read/Write Dynamics Ax data to excel
by Bo Jensen •
Here are some bits of X++ code to read and write AX data from Excel
Microsoft Dynamics Ax
X++ code to identify multiple selected records in Grid
by Bo Jensen •
1. Create a new method on form and copy the following code. 2. Next create a button on form . and call the method on the button click event. (for the button property makesure the Multiselect should be set to yes , or else by default for multiple selection system will disable the buttons) void…
Microsoft Dynamics Ax
Code to generate NumberSequence numbers
by Bo Jensen •
Axapta uses following classes for generating numbers against numberseq code. 1.NumberSeq class–> Main class which will generate,assigns numbers and vouchers for references. 2.NumberSeqReference–> Used to find the reference.
Microsoft Dynamics Ax
Dynamics AX Solutions: Filtering Excel and CSV files in a dialog
by Bo Jensen •
Here is a small peace of Axapta x++ code, that allow you to filter XLSX and CSV files in a dialog box… This is useful if you want to show only this type of files in a selection. public Object dialog() { DialogRunbase dialog = super(); #AviFiles #Excel dialogFilename =…
Microsoft Dynamics Ax
Check Security Key via X++
by Bo Jensen •
SecurityKeySet securityKeys; Boolean fullAccess; ; securityKeys = new SecurityKeySet(); securityKeys.loadUserRights(curuserid()); fullAccess = securityKeys.access(securitykeynum("xxxxxxxxxxxxxxx")) == AccessType::Delete; formDesignElement.visible(fullAccess); Malaysia Dynamics AX Blog: Check Security Key via X++
Enterprise Portal
create a web popup form in AX
by Bo Jensen •
How to create a popup web form in AX Enterprise Portal.