beautypg.com

Compiling device capability set definition file – H3C Technologies H3C Intelligent Management Center User Manual

Page 510

background image

496

destDisplayProperty="XXXXName" type="1"/>

If the initialization action is of the REST type, destValuePropertyand destDisplayProperty require the XPath
expression, as shown in example 3.
The displayValue property and value property of the combo box control are consistent, so the system

uses the destValueProperty value for initialization.
Example 3: To use the device VLAN information to initialize the drop-down list by using the vlanName
value as the displayValue value and the vlanId value as the value value of the component, compile the

following information:

destDisplayProperty="//vlan/@vlanName" type="1"/>

Following is the response message body for querying device VLANs.

<

vlan

vlanStatus="1"

vlanName="VLAN 0001"

vlanId="1"

/>

<

vlan

vlanStatus="1"

vlanName="VLAN 0003"

vlanId="3"

/>

<

vlan

vlanStatus="1"

vlanName="VLAN 0005"

vlanId="5"

/>

Mixed initialization

Mixed initialization allows for both static and dynamic initialization, and takes the result from the union
of the static and dynamic initialization results.
Example 1: drop-down list mixed initialization

destDisplayProperty="XXXXName" type="1"/>

Example 2: combo box mixed initialization

destDisplayProperty="XXXXName" type="1"/>

Compiling device capability set definition file

The device capability set definition file is an XML file, whose name must be component

name_devCapabilities.xml. This file defines the device capability set supported by the operations of the
component. The following is an example:

1.3.6.1.4.1.25506