Quantcast
Channel: x++ – SysDictCoder
Browsing latest articles
Browse All 12 View Live

Deleting items from a list

Just a quick one to point out a common pitfall when working with list objects. To remove objects from a list you need to use an iterator. In X++ iterators require the developer to write a loop with...

View Article



On hand inventory in code

Inventory in Ax is quite important. Often developers need to find out what the stock levels are in code. It’s tempting to write a query directly on the InventSum table and be done with it. This is...

View Article

Don’t forget the correct method signature when using runClassMethodIL()

If you think you know how something works, but really don’t and you’re not paying attention when errors pop up then you’re going to have a bad time. So if you write this: static private void myMethod()...

View Article

Ax 2012 X++ editor extensions

If you’re developing in Ax 2012 and you’re not yet using the editor extensions immediately stop what you’re doing and head over to Codeplex to download the extensions. Installing them is as easy as...

View Article

Inconsistent behavior between X++ and CIL using tables with inheritance

This one is a doozy. Recently a customer contacted me because they were having problems running a job they made themselves to export product information. It seemed to work fine in the client during...

View Article


Keeping an eye on output to files

Just a quick tip when you want to do some simple logging when jobs are running. Suppose you need to modify a lot of data and you want to log which records are updated and some other things. You could...

View Article

Image may be NSFW.
Clik here to view.

Unexpected assertion failure caused by impossible modification

Today I was testing some modifications in the Ax 2012 project module and wanted to delete a test project I had just created. Much to my surprise I ended up in the debugger on a failed Debug::assert()...

View Article

Can’t define abstract or final methods on abstract table

It seems Ax doesn’t allow you to use abstract or final on abstract tables. When adding abstract public myMethod() to an abstract table (e.g. EcoResProduct), you get this compile error: Conflicting...

View Article


Image may be NSFW.
Clik here to view.

Performance considerations: event handlers

Lately I’ve been involved quite a bit in performance analysis and tuning on Ax 2012. It’s not only important to solve the customer’s requirements but at the same time the solution must be implemented...

View Article


Image may be NSFW.
Clik here to view.

Performance considerations: aggregate functions

It’s time for another quick performance tip. During a reviews sometimes I come across code like this (table changed to protect the guilty): ProdTable prodTable; real total; ;   while select prodTable {...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images