最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

AX7/D365/Operations: Create Details Master pattern form

网络文摘 William 2790浏览 0评论

Purpose:

The purpose of this document is to demonstrate how we can develop a Details Master form in Dynamics 365 for Operations. While doing so, it also shows how to apply the new form patterns and subpatterns.

Please note that the new Details Master pattern (Dynamics 365 for Operations) obsoletes the older ListPage pattern (AX 2012).

Prerequisites:

  • Access to Dynamics 365 for Operations instance via remote desktop.
  • To be provisioned as an administrator for the instance.
  • Visual Studio project, model, package have been created.
  • Custom table MAKInventRawMaterial has been created in the project.

Business requirement:

Ability to maintain records in a grid and detail view within the same form.

Development:

1. Click Ctrl+Shift+A to add new item to the project.
2. Navigate to User Interface > Form. Give a suitable name, MAKInventRawMaterial.

Form1

3. Drag and drop MAKInventRawMaterial table from the project to the Data Sources node.

Form2

4. Right-click Design node. Click Apply pattern > Details Master.

Form3

5. Once the pattern gets applied, open the Pattern pane to see the missing controls which need to be added to comply with the pattern.

Form4

6. Add the identified missing controls to the Design node in the same order as shown in the pattern tab.

Form5

7. As you can see after adding the required controls the violations have been but still there are some warnings.
8. Navigate to FormGroupControlNavigationList to view its Pattern tab. We still have missing controls for our Navigation List control.

Form6

9. Adding the identified missing controls resolves the pattern issues.

Form7

10. Repeat steps 6 – 9 till all the pattern and subpattern issues have been resolved by adding the missing controls. At the end of the process, you will have a completed form ready to add data source fields to.
11. Add the following field groups to the Details panel from data source table.

Form8DetailsTab

12. Add the AutoReport field group to the Grid control of the Grid panel.

Form9GridTab

13. Navigate to FormCommandButtonControl and set Command property to DetailsView.

Form10CommandButtonDetailsView

14. Navigate to FormGridControl and set Default Action property to the FormCommandButtonControl.

Form11GridDefaultAction

15. Right-click Project > Forms > MAKInventRawMaterial. Click Set as Startup Object.

StartupObject

16. Select project in your Solution Explorer and click Start in Visual Studio.
17. You should be able to see your form in action in the browser.
18. Grid view.

Form12GridView

19. Details view.

Form13DetailsView


发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址