The console auto-generates Data frame pages based on the definition of a service’s attributes in an XML service definition file. Each service attribute is defined with the XML attributes type, uitype and syntax. Type specifies the kind of value the attribute will take. uitype specifies the HTML element displayed by the console. syntax defines the format of the value. The values of these attributes can be mixed and matched to alter the HTML element used by the console to display the values of the attributes. For example, by default, an attribute of the single_choice type displays its choices as a drop down list in which only one choice can be selected. This list can also be presented as a set of radio buttons if the value of the uitype attribute is changed to radio. Miscellaneous Customizations illustrates this concept.
<AttributeSchema name="test-attribute" type="single_choice" syntax="string" any="display" uitype="radio" i18nKey="d105"> <ChoiceValues> <ChoiceValue i18nKey="u200">Daily</ChoiceValue> <ChoiceValue i18nKey="u201">Weekly</ChoiceValue> <ChoiceValue i18nKey="u202">Monthly</ChoiceValue> </ChoiceValues> <DefaultValues> <Value>Daily</Value> </DefaultValues> </AttributeSchema> |
Miscellaneous Customizations is a listing of the possible values for each attribute, and the corresponding HTML element that each will display based on the different groupings.
Table 2–1 Service Attribute Values and Corresponding Display Elements
type Value |
syntax Value |
uitype Value |
Element Displayed In Console |
---|---|---|---|
single_choice |
string |
No value defined |
pull-down menu choices |
radio |
radio button choices |
||
Single |
boolean |
No value defined |
checkbox |
radio |
radio button |
||
string |
No value defined |
text field |
|
link |
hyperlink |
||
button |
clickable button |
||
password |
No value defined |
text field |
|
paragraph |
No value defined |
scrolling text field |
|
list |
string |
No value defined |
Add/Delete name list |
name_value_list |
Add/Edit/Delete name list |
||
multiple_choice |
string |
No value defined |
choice list |