Personalizzazione avanzata > Business Logic Customization > DTI Customization Framework > Customize the Windchill tab in Microsoft Office > Add Custom Commands
  
Add Custom Commands
Windchill Desktop Integration allows the addition of new commands to the existing set. These commands are the implementations of sets of actions to be triggered, based on interaction with the new controls on the ribbon UI.
These commands can be controlled from the server directly rather than implementing the changes on each client system.
Customized ribbon actions are located in the following server file:
<Windchill>/codebase/com/ptc/windchill/enterprise/nativeapp/msoi/client/custom/wtCustomActions.xml
After the changes to this file are saved, the Windchill Desktop Integration client automatically picks up a copy of the changes from the server when it connects to the server the next time.
The following example illustrates a custom command:
<command key="CustomAction01">
<action method="run_macro" type="CLIENT">
<defaultdata key="macro_name">DisplayHelloWorldAlert</defaultdata>
</action>
<action serverAction="customization.DTICustomizationDemo" type="WIZARD"/>
</command>
* 
In this example, method and serverAction are actually implemented on the client and the server respectively. Each attribute value should be accompanied with implementation.
Otherwise, an Action not found error will be displayed by Windchill Desktop Integration.
Adding Action Specific Data
The file is pre-populated with the text Add your description below this.
If the intent is only to pass the data retrieved from the server from an earlier action to the next one, then you can use an empty macro_args data node. For more information, see the can be second run_macro action instance from the SearchParts example implementation scenario later in this topic.