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

496
<Init refAction="getVlanAction" destValueProperty="XXXXId"
destDisplayProperty="XXXXName" type="1"/>
</View>
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:
<View type="SelectOneMenu">
<Init refAction="getVlanAction" destValueProperty="//vlan/@vlanId"
destDisplayProperty="//vlan/@vlanName" type="1"/>
</View>
Following is the response message body for querying device VLANs.
<list>
<
vlan
vlanStatus="1"
vlanName="VLAN 0001"
vlanId="1"
/>
<vlan vlanStatus="1" vlanName="VLAN 0002" vlanId="2" />
<
vlan
vlanStatus="1"
vlanName="VLAN 0003"
vlanId="3"
/>
<vlan vlanStatus="1" vlanName="VLAN 0004" vlanId="4" />
<
vlan
vlanStatus="1"
vlanName="VLAN 0005"
vlanId="5"
/>
</list>
•
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
<View type="SelectOneMenu">
<SelectItem value=" " displayValue=" "/>
<Init refAction="getVlanAction" destValueProperty="XXXXId"
destDisplayProperty="XXXXName" type="1"/>
</View>
Example 2: combo box mixed initialization
<View type=" CompositeInputText">
<SelectItem value=" " displayValue=" "/>
<Init refAction="getVlanAction" destValueProperty="XXXXId"
destDisplayProperty="XXXXName" type="1"/>
</View>
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:
<?xml version="1.0" encoding="UTF-8"?>
<DevCapabilities>
<Capability name="gencfgDC">
<SysOID>1.3.6.1.4.1.25506</SysOID>