How to: Associate a Display Menu item with a Workflow Task or Approval
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
After you create a task or approval in a Microsoft Dynamics AX workflow, you must add a display menu item that is used to display the form for the workflow element in the application at run-time. The end-user takes action to complete the task or approval step by using the form that is displayed. The following procedures describe how to add a display menu item to a task or approval.
Use the same procedure when you add a web client task or approval URLs menu item in the Web Menu Items node of the Application Object Tree (AOT).
For more information about how to add a task or approval to an action menu item, see How to: Associate an Action Menu Item with a Workflow Task or Approval Outcome.
Before you begin this procedure, you must create a task or approval that you want to add a display menu item to. For more information, see How to: Create a Workflow Task and How to: Create a Workflow Approval.
To create a display menu item and bind it to a task
In the AOT, expand the Menu Items node.
Right-click the Display node, and then click New Menu Item. A new display menu item displays under the Display node.
Right-click the new display menu item and then click Properties.
In the Properties sheet, set the following properties.
The name that is used to reference the Display menu item for the task, for example, PurchReqTable.
The label used for the display menu item used in the user interface. For example, enter Purchase Requisition to identify the form to display when the task is activated.
Set to Form. Use this value to set which object type is to be displayed when the task is activated.
Set to the form that is displayed when the task is activated, for example, the PurchReqTable form.
The configuration key assigned to this menu item.
In the AOT, expand the Workflow node, and then expand the Tasks node.
Right-click the task that you want to bind a display menu item to and then click Properties.
In the Properties sheet, set the DocumentMenuItem property to the task display menu item that you created in step 4.
After a display menu item for a task or approval, or outcome is created, you can add the task or approval to a workflow type in the Supported Elements node. For more information, see How to: Add a Task, Automated Task, or Approval to a Workflow Type.
Creating Workflow Tasks, Automated Tasks, and Approvals
How to: Associate an Action Menu Item with a Workflow Task or Approval Outcome
Walkthrough: Creating a Workflow with a Task and an Approval
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.