Determining the different options of a pull-down menu from a database entity?
I am trying to populate the values of a pull-down menu from a database. For this purpose, I defined cons!GENERIC_TASKS which points to corresponding database entity. I also have the following expression rule which reads all necessary data from the respective entity:
a!queryEntity(
entity: cons!GENERIC_TASKS,
query: a!query(
selection: a!querySelection(
columns: {
a!queryColumn(
field: "genericTaskName"
)
}
),
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: -1
)
),
fetchTotalCount: false
)
The test result of this rule looks promising since it contains all required data, the labels and the values.

In my user interface, I am now trying the following:
a!dropdownField(
label: "Generic step type",
labelPosition: "ABOVE",
placeholder: "--- Please choose a step type ---",
choiceLabels: {rule!APAS_GetAllGenericTaskNames.data.genericTaskName},
choiceValues: {rule!APAS_GetAllGenericTaskNames.data.identifiers},
saveInto: {},
searchDisplay: "AUTO",
validations: {}
)
However, this gives me the following error:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!dropdownField: Invalid index: Cannot index property 'data' of type Text into type Rule or Function Reference
What do I do wrong?
