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