Enum Property

Search
Feedback

An Enum Property can hold a single string value from a list of pre-defined values.

An Enum Property

Details

The possible values of an enum property are specified in the Format/Code field of the property. The values have to be provided as a comma-separated list.

Note

Because Structr dynamically creates Java code from the format definition, the following limitations apply:

  • Enum-values must be simple alpha-numeric strings (i.e. no special characters, no spaces, etc)
  • Reserved words (like “boolean”, “final”, etc) are not allowed
JSON Output
{
    "query_time": "0.000897187",
    "result_count": 1,
    "result": {
       "status": "active"
    },
    "serialization_time": "0.000051543"
}

Graph-Browser

About this article
Last change 2016-12-08
Topics Structr 2.0