Financial Dimensions Setup on a tab page

On particular table add DefaultDimension field and make the relation such that:


On the Particular forms CalssDeclearation write following code:
 -----------------------------------------------------------------------------
DimensionDefaultingController   dimensionDefaultingController;
------------------------------------------------------------------------------

Override the forms Init method and add following lines of code:
----------------------------------------------------------------------------------------------------------------------
    dimensionDefaultingController = DimensionDefaultingController::constructInTabWithValues(
    true, true, true/*financialsDimensionsEnabled*/, 0, this,<Tab Page Name> , "@SYS138491");
    dimensionDefaultingController.parmAttributeValueSetDataSource(<dataset name_ds>,         fieldStr(<table name>, <field name>));
-----------------------------------------------------------------------------------------------------------------------
Override tab page "pageActivated method" and add following code above super():
-----------------------------------------------------------
dimensionDefaultingController.pageActivated();
-----------------------------------------------------------

on form data source override the Active , Write and delete method and add line of code after super() respectively:
------------------------------------------------------------
DimensionDefaultingController.activated(); // in active method
dimensionDefaultingController.writing();   // in write method
dimensionDefaultingController.deleted();  // in delete method
------------------------------------------------------------

Financial dimensions white paper link:
https://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CBsQFjAA&url=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F4%2FE%2F3%2F4E36B655-568E-4D4A-B161-152B28BAAF30%2FImplementing_the_Account_and_Financial_Dimensions_Framework_AX2012.pdf&ei=xX9AVZmJHcKNNpXwgagE&usg=AFQjCNGQvczoTXuUa3vg2QM-dVXmT1rqjQ&sig2=rVtUFl6W20LkPrugvKzHwA&bvm=bv.91665533,d.eXY&cad=rja

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment

Popular posts from this blog

D365: SSRS Report Development/ Customization

D365: X++ code to add custom lookup on worker to show specific workers team workers only

Error message when you log on to a Microsoft Dynamics AX 4.0 client: "You are not a recognized user of Microsoft Dynamics AX"