Parameter view control – H3C Technologies H3C Intelligent Management Center User Manual

Page 504

Advertising
background image

490

<SelectItem value="5" displayValue="Friday"/>

<SelectItem value="6" displayValue="Saturday"/>

<SelectItem value="7" displayValue="Sunday"/>

</View>

</Parameter>

Example 2: if no view is defined, the text box InputText is used by default.

<Parameter name="param6" label="%str.param6"/>

Example 3: If the parameter value uses replaceable variable, the system does not generate dynamic view
for the parameter. The system dynamically assigns a value to the replaced variable when executing the
action of the operation. For more information about variable replacement supported by the common

configuration framework, see

Replaceable variable list

.

<Parameter name="devId" value="${DEVICE_ID}"/>

Example 4: parameter format when sending REST request by using the entity class:

<Parameter name="devId" value="${DEVICE_ID}" entityProperty="id"

dataType="java.math.BigInteger"/>

To access services provided by the third-party system through the REST interface, use one of the following
methods:

Send the parameter value input by the user as the URI parameter to the third-party system.

Send REST request by using the entity class. You must compress the third-party entity class as a jar
package and place it in the following directory: $IMC_HOME/client/web/repository.

Parameter view control

The common configuration framework supports the following views: text box (InputText), check box

(Checkbox), check box group (SelectManyCheckbox), calendar control (PopupCalendar), drop-down

list (SelectOneMenu), and combo box (CompositeInputText).

Text box (InputText)

The text box, shown in

Figure 84

, is used to control text input shown in

Table 15

.

Figure 84 Text box view

Table 15 Properties of the text box element

Property

name

Description Required

Remarks

editable

Whether editing
is allowed

N

Enumerated value: true (allowed) or false (not allowed). The
default is true.

Example 1:

<View type="InputText"/>

Example 2: if no view is defined, the text box InputText is used by default.

<Parameter name="param6" label="%str.param6"/>

Check box

The check box indicates the enabled or disabled state of a parameter.

Advertising