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 ISelectionListProperty
s and in different IDataEntryTemplate
s. 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"
For a list of all members of this type, see ISelectionList Members.
Namespace: Plumtree.Remote.PRC.Content.SelectionList
Assembly: idk (in idk.dll)
ISelectionList Members | Plumtree.Remote.PRC.Content.SelectionList Namespace