Enumerations:
-----------------
| value | label |
|-----|------|
{% for enumeration in enumerations.Items %}
| {{value}} | {{label}} |
{% endfor %}
Flow_0322grc
Flow_1pvx3ro
Flow_07a2oxo
Flow_1p5fxob
Flow_1p5fxob
Flow_148h40r
# Build Enum List
enumerations_items_list_cnt = enumerations["Count"]
enumerations_list = []
enumerations_list.append({'label': 'Add New', 'value': 'add'})
for n in range(0, enumerations_items_list_cnt):
enumerations_list.append({'label': enumerations_items_list[n]["Label"], 'value': enumerations_items_list[n]["Value"]})
Flow_148h40r
Flow_0d8570g
Flow_0d8570g
Flow_0i6hbp9
Flow_0i6hbp9
Flow_0322grc
if whichEnum == "add":
addSubject = "Enumeration"
else:
matched = [ d for d in enumerations_list if d.get('value') == whichEnum ]
addSubject = matched[0]['label'] if matched else None
Flow_17i0vic
Flow_1pvx3ro
Flow_17i0vic
Flow_07a2oxo