Posts

D3FO: Event handlers usage through code in AX7

[FormEventHandler(formStr(SomeForm), FormEventType::Initialized)] public static void SomeForm_OnInitialized(xFormRun sender, FormEventArgs e) { FormDataSource MyRandomTable_ds = sender.dataSource(formDataSourceStr(SomeForm, MyRandomTableDS)); ... } Get FormRun from form datasource [FormDataSourceEventHandler(formDataSourceStr(MyForm, MyRandomTableDS), FormDataSourceEventType::Written)] public static void MyRandomTableDS_OnWritten(FormDataSource sender, FormDataSourceEventArgs e) { FormRun formRun = sender.formRun() as FormRun; formRun.myCustomMethod(); } Get FormRun from form control [FormControlEventHandler(formControlStr(MyForm, MyButton), FormControlEventType::Clicked)] public static void MyButton_OnClicked(FormControl sender, FormControlEventArgs e) { FormRun formRun = sender.formRun() as FormRun; formRun.myCustomMethod(); } Access form control from xFormRun [FormEventHandler(formStr(SomeForm), FormEventType::Initialized...
https://www.tech.alirazazaidi.com/category/dynamics-ax-7/

RDP or Business logic based SSRS Reports in Dynamics Ax 2012 R3.

https://www.tech.alirazazaidi.com/rdp-or-business-logic-based-ssrs-reports-in-dynamics-ax-2012-r3/

Purchase Order Approval Workflow with Dynamics 365

Image
https://blog.axug.com/purchase-order-approval-workflow-with-dynamics-365 Workflow Overview Workflow is a representation of a business process that defines who must complete a task, make a decision, or approve a document. Benefits of using workflows include consistent, to ensure documents are processed and approved in a consistent and efficient manner, processes visibility, which allows for tracking the status and history of a specific workflow. Figure 1: Workflow History Users can view a centralized work list to view all workflow tasks and approvals assigned to them. In the Dynamics AX client, users can access their work list from the Role Center. In D365 for Operations, users can view their work items on the Dashboard, or through the Common module (Common> Work Items). Procurement and Sourcing Workflows Procurement and Sourcing workflows allow for purchase requisitions and purchase orders to be approved by a user other than the person who created the transaction. The...

Customization in New Dynamics Ax (Aka AX 7)- Part 6 Custom Workflow

Image
https://www.tech.alirazazaidi.com/customization-in-new-dynamics-ax-aka-ax-7-part-6-custom-workflow/ Customization in New Dynamics Ax (Aka AX 7)- Part 6 Custom Workflow Hi, every one, Let’s explore the custom workflows in new Dynamics Ax commonly known as AX 7. This blog post is part of series. In this post, I build a custom workflow based on table and form build in pervious posts. Below links leads you to older posts. http://tech.alirazazaidi.com/customization-in-new-dynamics-ax-ax-7-part-1-creating-new-model/ http://tech.alirazazaidi.com/customization-in-new-dynamics-ax-aka-7-create-new-module/ http://tech.alirazazaidi.com/customization-in-new-dynamics-ax-ak-7-part-3-form-and-table-extensions/ http://tech.alirazazaidi.com/customization-in-new-dynamics-ax-ak-7-part-4-custom-tables/ http://tech.alirazazaidi.com/customization-in-new-dynamics-ax-aka-ax-7-part-5-custom-forms-simple-list-page/ As per Microsoft Documentation Custom workflow development...