How to Create Form XML for a Configuration Manager Dialog Box
In Configuration Manager, to create the form XML for a Configuration Manager dialog box, you create an XML file that describes a SmsFormData.
The form XML is similar to the property sheet form XML with the following exceptions:
FormType
must be set toDialog
.The following procedure demonstrates how to create the form XML file for the dialog box you created in How to Create a Configuration Manager Dialog Box.
To create the form XML for a dialog box
If it is open, close the Configuration Manager console.
In Notepad, create an XML file that contains the following XML:
<?xml version="1.0" encoding="utf-8"?> <SmsFormData FormatVersion="1.0" xmlns="http://schemas.microsoft.com/SystemsManagementServer/2005/03/ConsoleFramework"> <Form Id="{DIALOGGUID}" CustomData="User Properties" FormType="CustomDialog" > <Assembly Name="ConfigMgrDialogControl" Namespace="Microsoft.ConfigurationManagement.AdminConsole.ConfigMgrDialogBox" ClassType="ConfigMgrDialogControl"/> </Form> </SmsFormData>
In Visual Studio 2010, on the Tools menu, click Create GUID.
In the Create GUID dialog box, in the GUID format panel, select Registry Format.
Click New GUID, and then click Copy.
In the XML above, paste the GUID into DIALOGGUID. Be sure to keep the open { and closing } in the XML.
Save the XML file in the folder, %ProgramFiles%\AdminConsole\XmlStorage\Extensions\Forms with the file name ConfigMgrDialogControl.xml. The file name must match the
DialogId
element of the action XML. If the Extensions folder does not yet exist, create it. Be sure to save the file as typeAll Files
.Start the Configuration Manager console, and select the action you defined in How to Create Action XML for a Configuration Manager Dialog Box.
The property sheet you created in How to Create a Configuration Manager Dialog Box appears.
See Also
How to Create a Configuration Manager Dialog Box
How to Create Action XML for a Configuration Manager Dialog Box
How to Create Form XML for a Configuration Manager Property Sheet