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....

1 comment:

  1. Gifts for traders When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your.

    ReplyDelete