Archive for February, 2008
Thursday, February 21st, 2008
I noticed a bug in the routine for printing out misc. charges on the SalesInvoice_SE document. The problem is that the label that are printed is always “Amount currency”, and the routine doesn’t calculate the amount correctly when the category is set to Pcs or Percent. I Haven’t tested if the SalesInvoice document has the same problem, but the markupSpec method seams to have the same errors so I think it shares the same problems.
(more…)
Tags: bug, markuptrans, misc charges, salesinvoice_se, tillägg
Posted in Bugs, DAX 4.0 SP2, Dynamics AX | No Comments »
Thursday, February 21st, 2008
When using WordPress to publish code we take advantage of the functionality of a generic Syntax Highlighter created by GeSHi. To use this in WordPress you’ll need a plugin called WP-Syntax.
Example:
1
2
3
4
5
6
7
8
| static void FO_HelloWorld(Args _args)
{
str HelloWorld = "Hello World!";
;
print HelloWorld;
pause;
} |
My advice to anyone that thinks about installing this plugin is to read about it and it’s functionality. The link to the plugin contains good information that descibes how to edit the look of the code display using CSS.
Posted in Wordpress | 2 Comments »
Wednesday, February 20th, 2008
Using the PriceDisc class in Dynamics AX is not always the easiest thing in the world. If you start out with a sales line or a purchase line you got methods that helps you get prices from the trade agreement, but if all the info you have is the ItemId and VendAccount it gets a bit tricky.
My thinking was that I should be able to use the PriceDisc class just as the InventOnhand class. You put in basic info, and the more data you enter into the class the more precise the result gets. But the hurdle I had trouble getting over was that the class PriceDisc requires a record from table InventDim, something that you only get if you start out with a sales line or a purchase line.
(more…)
Tags: agreement, AllBank, findOrCreateBlank, InventDim, InventDimId, PriceDisc, trade
Posted in Development, Dynamics AX, Dynamics AX 4.0 | No Comments »
Monday, February 18th, 2008
We start out in the PurchTable form where we, by clicking a button, calls a class with the help of a menu item. The menu item has been given the datasource PurchTable.
The called class updates the record that was selected in the PurchTable, but when this is done the user cannot see the changes without pressing F5 or restarting the form completely. The method FO_doRefresh() does a refresh on the PurchTable Form.
(more…)
Tags: args, caller, ClassIdGet, ClassNum, formHasMethod, Refresh, tableId, tableNum
Posted in Development, Dynamics AX, Dynamics AX 4.0 | 2 Comments »
Wednesday, February 13th, 2008
In Dynamics AX it is possible to select multiple records in any form, well at least you can if more than one record is visible. This example describes a simple way to handle the selected records before doing something with or to them. In this example we have a clicked-method on a button. If, and only if, the new field “newField” on our table “TestTable” is set on all the selected records, then the super() is run.
(more…)
Tags: getFirst, multiple, records, strfmt
Posted in Axapta 3.0, Development, Dynamics AX, Dynamics AX 4.0 | No Comments »