Posts

Showing posts from February, 2017

New Print Destination in Dynamics 365 for Operations

Image
A customization may require you to add a new report print destination. With the help of delegates and extensions it's quite simple to achieve that in D365FO: 1. Create an extension of the BaseEnum SRSPrintMediumType and add your new report destination: 2. Create your class which will have your customization relating to your new destination. Now subscribe to the delegate method onPrintReport in SRSPrintDestinationSettingsDelegates class and add your custom code: 3. Create an extension for SRSPrintDestinationSettingsForm and add your tabpage for your new destination: 4. Next thing is to add the code that will build your destination Tabpage and your destination list. This can be done by subscribing to the delegate methods in SRSPrintDestinationSettingsDelegates class: Code for print medium type change event on the destination form Code for building SendTo list control on the destination form Code for the index selection

Dimension Entry Controls in Dynamics 365 for Operations

Image
In Dynamics 365 for Operation adding dimension controls to Forms has been changed a bit so that all forms interact only with the Dimension Entry control instance API and not directly with the controller classes eg. LedgerDefaultDimensionEntryController, etc. These are some of the changes I've noticed while upgrading Ax 2012 to D365FO: 1. Add the Dimension Entry form control and set the properties 2. While upgrading these are some of the differences I found between Ax 2012 and D365FO: Ax 2012 dimensionDefaultingController = DimensionDefaultingControllerNoDS::constructInGroupWithValues(true, true, true, 0, this, dimensionsGroup, "@SYS138487", legalEntity.text()); D365FO DimensionEntryControl.parmDisplayValues(true); DimensionEntryControl.parmCompany(legalEntity.text()); DimensionEntryControl.reactivate(); Ax 2012 dimensionDefaultingController.pageActivated(); dimensionDefaultingController.loadValu