Udostępnij za pośrednictwem


How to Create Form XML for a Configuration Manager Dialog Box

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

In Microsoft System Center Configuration Manager 2007, to create the form XML for a Configuration Manager 2007 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 to CustomDialog.

  • ClassType must be set to the dialog box class name.

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

  1. If it is open, close the Configuration Manager 2007 console.

  2. In Notepad, create an XML file that contains the following XML:

    <?xml version="1.0" encoding="utf-8"?>
    <SmsFormData FormatVersion="1.0" xmlns="https://schemas.microsoft.com/SystemsManagementServer/2005/03/ConsoleFramework">
      <Form Id="{ED8B671C-64E4-4ffd-BC99-8CC185195D3C}" CustomData="User Properties" FormType="CustomDialog" >
        <Assembly Name="ConfigMgrDialogControl" Namespace="Microsoft.ConfigurationManagement.AdminConsole.ConfigMgrDialogBox" ClassType="ConfigMgrDialogControl"/>
      </Form>
    </SmsFormData>
    
  3. In Visual Studio 2005, on the Tools menu, click Create GUID.

  4. In the Create GUID dialog box, in the GUID format panel, select Registry Format.

  5. Click New GUID, and then click Copy.

  6. In the XML above, paste the GUID into DIALOGGUID. Be sure to keep the open { and closing } in the XML.

  7. Save the XML file in the folder, %ProgramFiles%\AdminUI\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 type All Files.

  8. 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

Concepts

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