In dynamics if form is created by listpage template, it would not let you write any code on form level.

 

Best practices says that you have to wrote code in extended interaction classes. But what if we have to write simple method at form levels, For such cases  you can write events or method like modified or clicked on controls.

You can write method or event of button or control by changing “DisplayTarget” property to “Client”.

 

1-28-2015 8-44-39 PM

{ 0 comments }

During posting a receive entry against purchase order I got following error for a product.

No cost rollup is found for this item. Activate the item cost price.

Intemprice

As understand there is no item cost activate in Dynamics Ax 2012 for this.

For this purpose you have to go

Product inform Management => Common=> Release products

Release product

Form list page open  search and edit the required product

From detail page click on item cost fast tab strip

 

Click on item price.


From pending line create a new line and click on activate it

Adding a new active

Now go to try purchase that Item there is no error.

{ 0 comments }

Dynamics Ax 2012 R3 Cu8 demo data download link

January 25, 2015

  Demo data file for Dynamics Ax 2012 R3 CU8 is available for download. You can download it from following link https://mbs.microsoft.com/partnersource/northamerica/sales-marketing/demo-tools/virtual-machines/AX2012DemoToolsMaterials To log on here you must have partner source or customer source credentials.  

Read the full article →

Todo is help us to remember the reason why we commented the code in Dynamics Ax 2012

January 23, 2015

Very interesting feature for developers in dynamics Ax 2012 comes from its legacy version is //Todo: come back here During development many times, we have to comment some code because it is unfinished or generate errors and we cannot generate CIL.  Later we forget where were we set commented lines of code because AX has […]

Read the full article →

unable to save method … Dynamics Ax 2012 R3

January 19, 2015

I got error message ” Unable to save method init” during saving the form.   While surprising it gives no error on compiling the code. I also found some errors on classes too, I solved it by following way, possible it helps,    

Read the full article →

Using AXBuild for fast compilation in Dynamics Ax 2012 R3

January 17, 2015

We can compile with whole AOT in less time as compared to compilation in Mophix. From Dynamics Ax 2012 R2 cu7 and later a utility provided for this purpose. You can found AXBuild exe from this location. X:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin And compilation command is as follow. axbuild.exe xppcompileall /s=01 /altbin=”C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin” […]

Read the full article →

How to check Dynamics Ax 2012 form is in edit mode

January 16, 2015

During development, I wrote code in clicked event of Button. But requirement is that code will works only if form is in edit mode. I used following code to check it   boolean _bool; supper(); _bool=   element.inViewMode(); if (_bool==boolean::true) { info (“true”); } else { info (“false”); } This  method element.inViewMode() return true when form […]

Read the full article →

How to create a new module in dynamics Ax 2012

January 14, 2015

Go to Data Dictionary in AOT. Expand it and under configuration create a new configuration key. Suppose we are going to create Module name with CustomModule, so we create is configuration key with same name. If you have license key then enter it other wise left it blank. This approach with out licence key works […]

Read the full article →

VendBankAccount and BankAccountTable address relation Dynamics Ax 2012

January 10, 2015

We can get address for VendBankAccount table and BankAccountTable by following way.   VendBankAccount  table has method which returns address VendBankAccount.addressing() ; For BankAccountTable you can use following query to fetch its address, both table has similar releationship with logistic location table BankAccountTable  _BankAccount; LogisticsPostalAddress _postalAddress; LogisticsLocation  _location; while select * from _BankAccount join * from […]

Read the full article →