Monday, 28 April 2014

Only show required Financial demensions in AX 2012 R2

This post is extension for the previous post 'Disable financial dimensions in AX 2012 through code': 
http://shankardynamicsax.blogspot.ae/2013/11/disable-financial-dimensions-in-ax-2012.html

If you would like to show only the dimensions which you are allowing to edit and does not want to display value part.

  1. Do the changes in 'addEditControls' method of  'DimensionDefaultingControllerBase' Class. As shown below
  2. .  Comment the code, As shown below
  3. Comment the code in 'loadAttributeValueSet' method of  'DimensionDefaultingControllerBase' Class. As shown below
 Comment the code in 'setValueData' method of  'DimensionDefaultingControllerBase'  Class. As shown below
 
 
Now when you check, financial dimensions on Customers form. It looks like as shown below...



Hope this helps you guys....

No comments:

Post a Comment