How to do it...

Carry out the following steps in order to complete this recipe:

  1. Add a new project in your solution in Visual Studio. Add a new class called BudgetModelTree with the following code snippet:
public class BudgetModelTree { FormTreeControl tree; BudgetModelId modelId; } public void new( FormTreeControl _formTreeControl, BudgetModelId _budgetModelId) { tree = _formTreeControl; modelId = _budgetModelId; } public static BudgetModelTree construct( FormTreeControl _formTreeControl, BudgetModelId _budgetModelId = '') { return new BudgetModelTree( _formTreeControl, _budgetModelId); } private TreeItemIdx createNode( TreeItemIdx _parentIdx, BudgetModelId _modelId, RecId _recId) { TreeItemIdx itemIdx; BudgetModel model; BudgetModel submodel; ...

Get Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.