Overview

Dynamic Enumeration is a drop-down widget that allows in creating and consuming String enumerations from the client on the fly. Its major advantage is it lets us create enumerations like options on the fly during runtime with just only one object instead of multiple objects like one-many associations.

Documentation

Typical usage Scenario

This widget can be used to create drop down selection objects with one string attribute, suitable for form inputs with options defined in advance.

Features

  • Allows creating options for drop down by saving them as a string in the Source Attribute.
  • Only one attribute is required instead of multiple objects.
  • Provides two modes Selector and Creator mode. In creator allows creating options and in selector mode allows selecting an option.
  • Performs duplicate check before adding an option to string.
  • Options can be removed if not required.
  • Allows manually sorting options.

Dependencies

  • Studio pro version 10.1.1

Configuration

  • To define options, create a source entity that is going to house our options in string attribute. In New Edit page of this entity add our widget and set Selector as false. Target and Caption for selector can be left empty.
  • To Select options in a form we can wrap our widget with data view that retrieves the source entity object that contains the options and configure the widget as below.

Screenshots