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…
Tag: MorphX
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++
Microsoft Dynamics Ax
Dynamics Ax – Update the records with single query statement.
by Bo Jensen •
For updating the ‘N’ no. of records we can use simple query statement instead of using while loop. (i.e. while select inventTrans where ) By using update_recordset we can update multiple records at a time. oldRFQCaseId = this.orig().RFQCaseId; ttsbegin; update_recordset inventTrans setting TransRefId = this.RFQCaseId where inventTrans.TransRefId == oldRFQCaseId; ttscommit; Dynamics Ax – Update the…
Enterprise Portal
create a web popup form in AX
by Bo Jensen •
How to create a popup web form in AX Enterprise Portal.
Microsoft Dynamics Ax
Dynamics AX tools and tutorials: Tutorial: Debugging AX while still using restricted roles (non-admin)
by Bo Jensen •
Microsoft Dynamics Ax
Try Catch example code in Dynamics AX
by Bo Jensen •
The code below contains a try/catch that I use a lot when developing batch jobs, especially multithreaded ones. It deals with frequently occurring exceptions that, in some cases, can be easily solved by retrying: Deadlocks Update conflicts Duplicate key conflicts Duplicate key conflicts are more rare than update conflicts, but I’ve seen them pop up…
Application Integration Framework
How to: Call an AIF Web Service from C#
by Bo Jensen •
How to: Call an AIF Web Service from C#
Microsoft Dynamics Ax
Adding only one Dimension in Dialog – Axaptapedia
by Bo Jensen •
Microsoft Dynamics Ax
Accessing record fields
by Bo Jensen •
Microsoft Dynamics Ax
Coding against Dimensions
by Bo Jensen •
The usual method of programming against a specific dimension in Ax is as follows: salesTable.Dimension[SysDimension::Center + 1] = ‘The cost centre’; However, this code is not technically correct. It relies on the enum value of the dimension matching the array dimension (plus 1), which is not guaranteed. If a developer follows Microsoft’s best practice guide…
Microsoft Dynamics Ax
Print Report to Printer through X++ Code in DAX 2009 – Microsoft Dynamics AX – Microsoft Dynamics Community
by Bo Jensen •
Re: Print Report to Printer through X++ Code in DAX 2009 – Microsoft Dynamics AX – Microsoft Dynamics AX – Microsoft Dynamics Community
Microsoft Dynamics Ax
Creating a report in X++ code and running – David Ferguson – Site Home – MSDN Blogs
by Bo Jensen •
Microsoft Dynamics Ax, Application Integration Framework
Run jobs instead of waiting for batch processing
by Bo Jensen •
The usual way for the AIF to run is using the batch processing framework, where you setup an interval for the inbound and outbound processing to run. This minute or so can feel like an age when you are in the middle of developing:
Microsoft Dynamics Ax, Application Integration Framework
Top 5 AIF Development Tips and Tricks « Greg On Dynamics Ax
by Bo Jensen •
1. Enable the debugger You will notice, if you put a breakpoint into your document class, that when you run the associated action, the breakpoint will get ignored – leaving you in the dark. This is because the action is called using a ‘runas’ function call to change the user executing the code. To workaround…
Microsoft Dynamics Ax
Axapta queries Fact
by Bo Jensen •
The query object model contains classes to define and run a query. These objects are used to define the query data source, the fields returned, record ranges and relations to child data sources. The following illustration shows the object model. DAX Blog: Axapta queries Fact
General
Create LookUps Using X++ « Vasanth Arivali's Space
by Bo Jensen •
Here I create Lookups using X++ Code(without Ax Table or EDT relation). For that i override a String(Text) Control’ s lookup method.
Microsoft Dynamics Ax
Go To Main Table Functionality in Axapta « Vasanth Arivali's Space
by Bo Jensen •
Go To Main Table Functionality in Axapta « Vasanth Arivali’s Space
Microsoft Dynamics Ax
Microsoft Dynamics AX 2009 : Working with Forms – Building dynamic form
by Bo Jensen •
Microsoft Dynamics AX 2009 : Working with Forms – Building dynamic form – Microsoft Certification Examples, exercises, practises, tutorials, solutions about Applications Server