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
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
This comment has been removed by a blog administrator.
ReplyDelete