Developing a Value Set Provider
A value set provider provides a set of allowed values for a dedicated parameter. This set can be used to show drop down list boxes in the UI or to validate a user input. The following figure shows the template wizard with an opened value set. The value set lists initial content, that can be used to fill the folder of an iView, when a room or room part is created.

Like
extensions, value set providers are portal services, and they are also
displayed in the template wizards. Because of this, the first four steps to
develop a value set provider are identical.
See Developing
a Room Extension:
· The project must be set up (steps 1 to 3)
· The same methods are implemented to make the value set provider displayable (step 4).
...
1. List the value sets
The value set provider defines a list of parameters, for which it exposes value sets. The sample source shows how the parameter list is built.
|
2. List the required parameters
To compute the value set of a parameter, the provider may require some input parameters. For example, if the value set should be the days of a month, it would require the month and the year to calculate the output. For each parameter in 1, the value set lists the required parameters.
|
Please note that in the current version of the rooms
this feature is not supported by the UI, so that it cannot be used. You will
just code the last line to return null.
3. Make the value set provider executable
The value set provider computes the value set for each parameter listed in 1.It takes the required input parameters defined in 2 from a context.
|
See also:
· Developing a Value Set Provider