Monday, September 22nd, 2008
I encountered a scenario where I wanted to find a record of a certain type somewhere in a big container. This got med thinking, and the result is the code below. I wanted to be able to loop through a container no matter how big it was or how many levels of new containers it contained.
This job searches through the container con1 and sorts the types Integer, Real and String into separate containers. In itself this job might not be very useful, but my goal was to build something that could easily be modified to work in many different cases when looking for different values in containers.
It also finds the specific records of VendTable, CustTable and SalesTable that I hid inside the container structure.
Read the rest of this entry »
Author: Erik Paulsson
Tags: conlen, conpeek, container, record, typeof, types
Posted in Development, Dynamics AX, Dynamics AX 4.0 | No Comments »
Tuesday, September 16th, 2008
Update: This issue was reported and has a hotfix that can be downloaded from Microsoft. Just create a new support issue on the partnersource and ask for the following:
Knowledge Base ID: 953178
Original post
The following checkbox ”Total discount is calculated automatically” makes sure that every order has its total discount calculated before it is posted.
Accounts Recievable/Setup/Parameters/Prices tab
This is done in the “clicked method” that executes when the posting button is clicked, this means that total discount is calculated on the sales order even before you get the dropdown where you can choose the different types of posting i.e. Invoice or Confirmation. But as it turns out, this does not seem work if you multiselect in the sales order form(Click thumbnail below to see the form).
Read the rest of this entry »
Author: Erik Paulsson
Tags: AutomaticTotalDiscount, bug, multiselect, sales
Posted in Bugs, DAX 4.0 SP1, DAX 4.0 SP2, Dynamics AX | No Comments »
Friday, September 5th, 2008
This is just a quick look at the List object in Dynamics AX. Just played around with it to see what functionality was there and what wasn’t. As you can see I just created a simple list of integers and also one with records from InventTable, if you wan’t to know what types can be placed in the list, check out the baseEnum “Types” in the AOT.
As a bonus I also created a xml file of the list of integers.
Read the rest of this entry »
Author: Erik Paulsson
Tags: addEnd, AsciiIo, current, getEnumerator, List, Listenumerator, types, XML
Posted in Development, Dynamics AX, Dynamics AX 4.0 | No Comments »
Friday, September 5th, 2008
If you ever encounter this error message in Ax4sp2 and you are one hundred procent certain that there is nothing wrong with your file, check the MessageId tag. This sequence can not just be increased by one all the time, sometimes you come to a combination which simply does not compute..
Read the rest of this entry »
Author: Henrik Laurell
Posted in DAX 4.0 SP2, Dynamics AX | 2 Comments »
Thursday, September 4th, 2008
When you work with the AIF and xml files, you often need to handle so called “white-space”. The normal AX functions strltrim() and strrtrim() only handles normal space (ascii 32), these are two examples which handle all kinds of spaces in files. Small and simple, but very handy.
Read the rest of this entry »
Author: Henrik Laurell
Posted in Development, Dynamics AX | No Comments »
Friday, August 29th, 2008
@SYS92355 = “Wrong field ID in the key data container in entity key”
This error message from the AIF in AX4sp2 did give me some headache today..
Finally I solved it. I was about to export a SalesOrder with both header and lines, but I did put my sendElectronically method in the SalesLine table, *not* in SalesTable table.. So when executed I never got the correct keys. The query I used for the axd wizard was based on SalesTable first, and THEN SalesLine..
Might help someone else with the same or similar problem!
Author: Henrik Laurell
Posted in Development, Dynamics AX, Dynamics AX 2009 | 3 Comments »
Wednesday, May 28th, 2008
I am currently studying to complete the Enterprise portal development certification exam. Today I found this link that describes the different parts of the exam. Anyone who have taken one of these exams before knows that you get your result for the entire exam but also for each of the exam parts. That is what this link gives you, an overview of the different parts and what subjects each part contains.
Microsoft learning manager.
You also get such information as what percentage each part is of the entire exam, which makes it easier to prioritize your studying in case of time restraints.
Author: Erik Paulsson
Tags: ax, certification, dynamics, exam, preparation
Posted in Dynamics AX | No Comments »
Tuesday, May 27th, 2008
In Axapta 3.x there is a functionality that lets you send messages to online users. This functionality is lost in Dynamics AX 4.x which is a problem when you want an easy way to communicate with the online users. Maybe you want the users to know that that the AOS is going to be restarted at a specific time and as a result they should save their work and log out before this happens.
I’ve looked around the web and have found some examples on how to create these notifications, but none that worked all the way without a visit to the debugger. Tired of not having access to this functionality I decided to build it, and this is the result.
As the base I am using the alerts functionality in Dynamics AX 4.0.
Read the rest of this entry »
Author: Erik Paulsson
Tags: alert, alerts, eventinbox, eventinboxdata, eventrule, EventType, message, messages, online, users
Posted in Dynamics AX | 7 Comments »
Friday, May 23rd, 2008
Dynamics AX 2009 is now ready for download. Click the link below to go to a blog post written by DaxGuy where you can find the download link.
Link to blog post.
Author: Erik Paulsson
Tags: 2009, ax, download, dynamics
Posted in Dynamics AX, News | No Comments »
Wednesday, May 21st, 2008
Found this on the blog mfp:s two cents. You can now download Inside Dynamics AX 4.0 for free as an eBook provided by Microsoft.
Link to blog post.
Nice to also have an portable and searchable version to add to my copy of the paperback.
Author: Erik Paulsson
Tags: ax, dynamics, ebook, free, inside, pdf
Posted in Development, Dynamics AX, Dynamics AX 4.0, News | No Comments »