https://dynamicsaxinsight.wordpress.com/2017/09/12/ax7-d365-operations-enable-disable-form-control-in-x-plus-plus/ Purpose: The purpose of this document is to demonstrate how we can enable/disable a form control in X++ based on a business logic. Product: Dynamics 365 for Finance and Operations, Platform Update 9. Development approach: Customization through extension. Development: Create a post event handler of a standard form method enabling/disabling the form controls. In this case, we are creating a post event handler of a standard method setFieldAccessHeader of SalesQuotationProjTable form. Please find the event handler method definition as follows. [PostHandlerFor(formStr(SalesQuotationProjTable), formMethodStr(SalesQuotationProjTable, setFieldAccessHeader))] public static void SalesQuotationProjTable_Post_setFieldAccessHeader(XppPrePostArgs args) { FormRun sender = args.getThis(); FormDataSource salesQuotationTable_ds; SalesQuot...
AX 2012: Multi-Select Lookup for SSRS Report Dialog https://dynamicsaxinsight.wordpress.com/2014/12/12/ax-2012-multi-select-lookup-for-ssrs-report-dialog/ muhammadanaskhan Development (AX 2012) , Dynamics AX 2012 , SSRS Reports , Technical (AX 2012) December 12, 2014 2 Minutes Overview: In this post we’ll learn how to build multi-select lookup for SSRS report dialog. We’ll create an RDP report with an AutoDesign layout. Controller will be used to run the report. An output menu item will be created to point to the controller class. Each AOT element involved will be described in detail. You can guess the complexity of this development task by looking at the AOT elements required for it: Let’s develop them piece by piece… 1. MAKCustTable (Query): 1. Create MAKCustTable query. 2. Drag CustTable table to the data sources node. 3. Select the fields as shown in the picture. 2. Tm...
Example code to export a data entity /// <summary> /// Export logic to export and download the target bonus data /// </summary> class HRIHcmWorkerTargetBonusEntityExport { DMFQuickImportExport quickImportExport; SharedServiceUnitFileID sampleFilePath; DMFDefinitionGroup definitionGroup; DMFExportImportDataContract exportImportDataContract; /// <summary> /// Export logic to export and download the target bonus data /// </summary> public static void main(Args _args) { HRIHcmWorkerTargetBonusEntityExport entityExport = new HRIHcmWorkerTargetBonusEntityExport(); entityExport.run(); }...
Comments
Post a Comment