description | title | titleSuffix | ms.date | ms.subservice | ms.service | ms.topic | ms.assetid | author | ms.author | manager | ms.localizationpriority | ms.collection | ms.reviewer |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn how to create action XML for dialog boxes. |
Create Action XML for a Dialog Box |
Configuration Manager |
09/20/2016 |
sdk |
configuration-manager |
how-to |
b946a1cb-d54a-48d3-a3f1-5db70c426513 |
Banreet |
banreetkaur |
apoorvseth |
low |
tier3 |
mstewart,aaroncz |
In Configuration Manager, to display a dialog box in the Configuration Manager console, you create a Configuration Manager ShowDialog Action action. To define the ShowDialog
action, you create an XML file that describes a ActionDescription element.
The following procedure creates the action XML for showing a dialog box. You must complete the procedures in the How to Create a Configuration Manager Dialog Box and How to Create Form XML for a Configuration Manager Dialog Box topics before you complete this procedure.
Note
The dialog identifier <DialogId
> must match the file name, without the XML extension, of the form XML you created in How to Create Form XML for a Configuration Manager Dialog Box.
-
If it is open, close the Configuration Manager console.
-
In Notepad, create an XML file that contains the following XML:
<ActionDescription Class="ShowDialog" DisplayName="Show my Dialog Box" MnemonicDisplayName="Mnemonic" Description="Description"> <ShowOn> <string>DefaultContextualTab</string> <!-- RIBBON --> <string>ContextMenu</string> <!-- Context Menu --> </ShowOn> <DialogId>ConfigMgrDialogControl</DialogId> </ActionDescription>
-
Save the XML file in the folder, %ProgramFiles%\AdminUI\XmlStorage\Extensions\Actions\32815086-cce9-42de-95a4-0941da31114e. The GUID value identifies packages in the results pane. The file name can be anything with an .xml extension. Be sure to save the file as type
All Files
. -
Start the Configuration Manager console, and in the console tree Packages node, right-click a package in the results pane, and then click Show my Dialog Box. A dialog box appears.
How to Create a Configuration Manager Dialog Box
How to Create Form XML for a Configuration Manager Dialog Box
How to Create Action XML for a Configuration Manager Property Sheet
How to Use Objects Passed to a Configuration Manager Forms
How to Bind Configuration Manager Data to a Form