Set the “EnumTypeParameter” on the form menuitem to FormOpenMode allows you to to set this via the menu Item then check for it once you open the form, this way if you open the form from diffrent locations you can check to see if the parameter is set to "ForNew" and if it is then…
Tag: X++
Microsoft Dynamics Ax
Tree Lookup – Axaptapedia
by Bo Jensen •
Tree Lookup – Axaptapedia
Microsoft Dynamics Ax
Reading Excel worksheets in Dynamics AX using CCADOConnection, CCADOCommand & CCADORecordSet classes
by Bo Jensen •
Reading Excel worksheets in Dynamics AX using CCADOConnection, CCADOCommand & CCADORecordSet classes ~ Zubair’s Microsoft Dynamics AX blog
Microsoft Dynamics Ax
Executing SQL directly from X++ « Amir's Microsoft Dynamics AX space
by Bo Jensen •
Executing SQL directly from X++ « Amir’s Microsoft Dynamics AX space
Microsoft Dynamics Ax
Working with the Query ranges « Amir's Microsoft Dynamics AX space
by Bo Jensen •
Working with the Query ranges « Amir’s Microsoft Dynamics AX space
Microsoft Dynamics Ax
Dynamics Ax Live: Create a XML file in Ax
by Bo Jensen •
Dynamics Ax Live: Create a XML file in Ax
Microsoft Dynamics Ax
Dynamics AX tools and tutorials: Tutorial: refresh, reread, research, executeQuery – which one to use?
by Bo Jensen •
Dynamics AX tools and tutorials: Tutorial: refresh, reread, research, executeQuery – which one to use?
SQL Reporting Services, Business Intelligence
Walkthrough: Creating Reports by Using Report Builder (MorphX Reporting Tools)
by Bo Jensen •
Walkthrough: Creating Reports by Using Report Builder (MorphX Reporting Tools)
Microsoft Dynamics Ax
Microsoft Dynamics AX code samples
by Bo Jensen •
archive.msdn.microsoft.com/axcodesamples
Microsoft Dynamics Ax
Connecting to Databases through X++ | AX WORLD
by Bo Jensen •
Connecting to Databases through X++ | AX WORLD
Microsoft Dynamics Ax
create sales order programmatically using x++ code
by Bo Jensen •
create slaes order programmatically using x++ code
Microsoft Dynamics Ax
SysInfoAction class description – Improve your Infolog – Ivan (Vanya) Kashperuk blog – AX Technical Blogs – Microsoft Dynamics Community
by Bo Jensen •
SysInfoAction class description – Improve your Infolog – Ivan (Vanya) Kashperuk blog – AX Technical Blogs – Microsoft Dynamics Community
Microsoft Dynamics Ax
How to Send the Callstack to the Infolog
by Bo Jensen •
When troubleshooting a problem it is helpful to have the X++ callstack especially in scenarios where you cannot use the debugger in the environment or the issue happens sporadically. The following X++ code will retrieve the X++ callstack and send it to the infolog. Add the example code to a method that is throwing an…
Microsoft Dynamics Ax
RunBase Framework Extension – Inside Microsoft Dynamics Ax 4
by Bo Jensen •
RunBase Framework Extension Use the RunBase framework throughout Dynamics AX whenever you must execute a business transaction job. Extending the RunBase framework allows you to implement business operations that do not have default support in the Dynamics AX application. The RunBase framework supplies many features, including dialog boxes, query windows, validation-before-execution windows, the progress…
Microsoft Dynamics Ax, Microsoft SQL Server
Connecting to Databases through X++ | AX WORLD
by Bo Jensen •
Connecting to Databases through X++ | AX WORLD
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) {…