Connecting to Databases through X++ | AX WORLD
Kategori: Microsoft Dynamics Ax
Microsoft Dynamics Ax
Dynamics AX: Changing Form color based on the current Company
by Bo Jensen •
Dynamics AX: Changing Form color based on the current Company
Microsoft Dynamics Ax
Counting lines from textfile in Axapta Programming
by Bo Jensen •
TextBuffer tb = new TextBuffer(); FileName myfile; // path to the csvfile tb.fromFile(‘myfile’); info(int2str(tb.numLines)); Counting lines from textfile in Axapta Programming
Microsoft Dynamics Ax
Posting SalesOrder Confirmation with SalesFormLetter Class in Ax
by Bo Jensen •
The Book of orders in Microsoft Dynamics AX is done through the class “sales form letter” or one of its more concrete (derived) classes. Each reservation type (eg confirmation, delivery note, invoice) is represented by a class that is derived from the base class “sales form letter” (see illustration). To reserve an order by code,…
Microsoft Dynamics Ax
Creating a Order through X++
by Bo Jensen •
static void createPurchase(Args _args) { AxPurchTable table; AxPurchLine line; ; table = new AxPurchTable(); table.OrderAccount(‘3023’); table.save(); line = new AxPurchLine(); line.axPurchTable(table); line.itemId(‘Q987’); // Item number Q987 line.purchQty(12); // 12 pcs. line.save(); } Creating a Order through X++
Microsoft Dynamics Ax
Dynamics AX: Confirm a Sales Order through code
by Bo Jensen •
Confirm a Sales Order through code Over the next few days I am going to post code that walks through the sales life cycle. To start below is code that will take a given SalesId and confirm it. public boolean confirmSalesOrder(SalesId _salesId) { SalesFormletter SalesFormletter; SalesTable SalesTable; ; SalesFormletter = SalesFormletter::construct(DocumentStatus::Confirmation,true); SalesTable.clear(); SalesTable =…
Microsoft Dynamics Ax
Dynamics AX: Read All Files inside a directory
by Bo Jensen •
void FindAllCSV() { #Evat_NL #File Filename baseFolder; Filename csvFilename; Filename foundBaseFileName; Filename foundFileName; container mainFolder, subFolder, fileContainer; boolean filesFoundMainFolder = true; boolean filesFoundSubFolder = true; int apiResult; int setCurrentFolder (Filename _filename = ”) { ; return WinAPI::setCurrentDirectory(_filename); } ; baseFolder = “C:TEST”; apiResult = setCurrentFolder(SysTreeNode::duplicatePathDelimiters(baseFolder)); mainFolder = WinAPI::findFirstFile(“*.*”); foundBaseFileName = conpeek(mainFolder, 2); while (filesFoundMainFolder) {…
Microsoft Dynamics Ax
How to import multiple file from a folder? – Microsoft Dynamics AX
by Bo Jensen •
container createListOfFiles(FilePath _path = path, FileNameType _pattern = pattern) { System.Array files; int fileCount; int i; str nextFile; new InteropPermission(InteropKind::ClrInterop).assert(); info(strfmt(‘Search in: %1 %2’, _path, _pattern)); listOfFiles = connull(); actIx = 0; files = System.IO.Directory::GetFiles(_path, _pattern); if (files) { fileCount = files.get_Length(); info(strFmt(‘Number of…
Microsoft Dynamics Ax
Creating Purchase Orders Through code in ax 2009
by Bo Jensen •
static void createPurchOrder(Args _args) { AxPurchLine axPurchLine = new axPurchLine(); AxPurchTable axPurchTable = new axPurchTable(); ; axPurchTable.parmPurchId();///Creates new PurchId axPurchTable.parmOrderAccount(‘1001’);///Vendor Account axPurchTable.save(); axPurchLine.parmPurchId(axPurchTable.parmPurchId());////Assigns PurchId axPurchLine.parmItemId(‘PolyEthylene’);///Item Number axPurchLine.axInventDim().parmInventSiteId("Unit1");///Site Id axPurchLine.axInventDim().parmInventLocationId("RM");/// Warehouse axPurchLine.parmPurchQty(1000);///Quantity axPurchLine.parmPurchPrice(20);///Purchase price per one quantity axPurchLine.save(); } kranthi AX: Creating Purchase Orders Through code in ax 2009
Microsoft Dynamics Ax
Creating Sales Orders Through code in ax 2009
by Bo Jensen •
static void createSalesOrder(Args _args) { AxSalesLine axSalesLine = new axSalesLine(); AxSalesTable axsalesTable = new axSalesTable(); SalesId salesId; ; salesId = axsalesTable.parmSalesId();///Creates sales Id axsalesTable.parmCustAccount(‘1104’); axsalesTable.save(); axSalesLine.parmSalesId(axsalesTable.parmSalesId());////assigns sales Id axSalesLine.parmItemId(‘PolyEthylene’);/// Item Id axSalesLine.axInventDim().parmInventSiteId("Unit1");///Site axSalesLine.axInventDim().parmInventLocationId("RM");///Warehouse ////if you have more dimensions enabled for item add here. axSalesLine.parmSalesQty(1000);///Quantity axSalesline.parmSalesPrice(20);///Sales Price per one quantity axSalesLine.save(); } kranthi AX: Creating…
Microsoft Dynamics Ax
Simpel dialog box i Dynamics AX
by Bo Jensen •
static void DialogSampleCode(Args _args) { Dialog dialog; DialogField field; ; dialog=new Dialog(“My Dialog”); dialog.addText(“Select your favorite customer:”); field = dialog.addField(typeid(CustAccount)); dialog.run(); if(dialog.closedOk()) { info(field.value()); } }
Microsoft Dynamics Ax, Enterprise Portal
How to: Add Methods to Data Sets
by Bo Jensen •
How to: Add Methods to Data Sets
Microsoft Dynamics Ax, Application Integration Framework
Axilicious » Debugging AIF on Windows 2008
by Bo Jensen •
Axilicious » Debugging AIF on Windows 2008
Enterprise Portal, Sharepoint
Search Configuration in SharePoint 2010 | Concurrency Blog
by Bo Jensen •
Search Configuration in SharePoint 2010 | Concurrency Blog
Microsoft Dynamics Ax, Enterprise Portal
Connecting the Dots (.NET Business Connector)
by Bo Jensen •
Connecting the Dots (.NET Business Connector) Recently, one of my colleagues was experimenting with Reporting Server on DAX 2009, whenever he used to view a report in SQL Server Reporting Manager he was welcomed with an error:
Microsoft Dynamics Ax
Import Items into Ax with Code – Microsoft Dynamics Community
by Bo Jensen •
This can be called to create a new item from code, for example CreateNewItem(‘AA01’);
Enterprise Portal, Microsoft Dynamics Ax
How to convert Microsoft Dynamics Ax Web form to use ASP.Net-based framework for Ax Enterprise Portal
by Bo Jensen •
MS ERPs, Dynamics Ax, AIF, X++, Sharepoint, Biztalk Server, SRS, .Net: How to convert Microsoft Dynamics Ax Web form to use ASP.Net-based framework for Ax Enterprise Portal
Enterprise Portal
How to debug x++ code for Microsoft Dynamics AX Enterprise Portal
by Bo Jensen •
How to debug x++ code for Microsoft Dynamics AX Enterprise Portal
Microsoft Dynamics Ax, Sharepoint, Enterprise Portal
How to use User Controls within .Net to develop or customize Microsoft Dynamics Ax 2009 Enterprise Portal -Part I
by Bo Jensen •
How to use User Controls within .Net to develop or customize Microsoft Dynamics Ax 2009 Enterprise Portal -Part I
Microsoft Dynamics Ax
How to Create a New Role Centre in Dynamics AX 2009
by Bo Jensen •
Compiled from Dynamics Ax Developer help for quick reference. Open Dynamics Ax enterprise portal (default installation is http://servername/sites/DynamcisAx). Click on Site Action > Create . Choose Web part page (as most Ax role center using this). Complete the page creation. Open Ax client > AOT > Web > Web menu item > URLs > New…
