In this post I showed you how to create a custom CI class, a form and seal the management pack. If you want to continue working with your form and add the history tab you can follow this blog post.
Patrik have created a form templates for the Authoring Tool that contains already implemented controls like the “Related Items” control and “History” controls. You can download his template here. In this example I will add the history tab to the form created earlier in this post.
- Download the package and extract all files
- Copy CustomFormTemplates.dll to a suitable folder, in my case C:\MPs
- Open the Authoring tool and your MP where you want to create a form . In my case I will use the MP and form created in the earlier post. I will replace the form with a new form
- In the Management Pack Explorer, right-click Forms and select Add Custom
- In the base class window, select Contoso.Projector as base class, click OK
- In the Add custom form window, input
- Internal name: contoso.projector.formB
- Assembly: CustomFormTemplates.dll
- Type: HistoryOnlyTemplate
- Click Create
- Add date pickers, labels and text fields as in the earlier post
- When done, delete your old form, in my case contoso.projector.form
- Seal your management pack according to my earlier post
- Save your management pack and close the Authoring Tool
- Start power shell as administrator, goto your MP folder
- Make sure you have the selaed MP (.mp) and the CustomFormTemplates.dll in the same folder
- We need to create a MP bundle as we have a custom dll (Patrik form templates) that needs to be inserted into Service Manager.
Run, new-mpbundle.ps1 Contoso.Projector.Library.mp Contoso.Projector.Library (new-mpbundle.ps1 is included in the package from Patrik)
- Verify that you now have a new .mpb file in your folder
- Import the new MPB file into Service Manager
- Change something on a project and then open the CI again and look at the history tab