Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

Plumtree.Remote.PRC.Content.SelectionList Namespace

Provides classes and interfaces for creating, modifying, managing, and retrieving selection lists. (See Content Item Examples for sample code on how to create and retrieve selection lists.)

Refer to the Administrator Guide for AquaLogic Interaction Publisher for additional details on content selection list functionality.

Note: Selection list names and values cannot be an empty string, and cannot be longer than 255 characters. Selection list names are case-insensitive. Selection list values are case-sensitive.

Since IDK 5.2

Namespace hierarchy

Interfaces

InterfaceDescription
ISelectionList Represents a selection list; a user-defined list of text values that specifies the list of valid values for an ISelectionListProperty property that can be added to an IDataEntryTemplate. An ISelectionList is similar to a drop-down menu which contains multiple pre-defined text values for a property. A user can select from the pre-defined list of values instead of typing a value for a text field. A selection list simplifies content item creation because it ensures that the value is spelled correctly and it is a valid value for that field.

A selection list can only be deleted if it is not currently being used by a IDataEntryTemplate. A given selection list can be reused in multiple ISelectionListPropertys and in different IDataEntryTemplates.

In the following example, a selection list is created that contains abbreviations for the U.S. states.

// Create a selection list representing states
String[] stateOptionValues = {"CA", "MA"};
ISelectionList stateSelectionList = selectionListManager.CreateSelectionList(rootFolder, "State Selection List", stateOptionValues);
stateSelectionList.store();
// Expand the list options
String[] expandedStateOptionValues = {"OR", "NY"};
stateSelectionList.AddValues(expandedStateOptionValues);
stateSelectionList.Store();
// The list now contains "CA", "MA", "OR", "NY"
// Remove the expanded options
stateSelectionList.RemoveValues(expandedStateOptionValues);
stateSelectionList.Store();
// The list now contains "CA", "MA"
ISelectionListManager Interface for managing ISelectionList functionality. Handles selection list creation, removal and retrieval.

To update selection list values use ISelectionList.Add/RemoveValues, and ISelectionList.Store to persist the changes.

Refer to the Administrator Guide for AquaLogic Interaction Publisher for additional details on selection list functionality.

An example using ISelectionListManager can be found in the documentation for ISelectionList.