Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
12 replies
Subscribers
7 subscribers
Views
13898 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi. I have a dropdown list that fails when selecting one of the values. Here i
bjartek
over 10 years ago
Hi. I have a dropdown list that fails when selecting one of the values. Here is the SAIL:
a!dropdownField(
label: "Regulation",
labelPosition: "ABOVE",
placeholderLabel: "--- Select a Value ---",
choiceLabels: rule!PMA_GetAllRegulations().name,
choiceValues: rule!PMA_GetAllRegulations().id,
value: ri!property.regulationId,
saveInto: ri!property.regulationId,
validations: {}
),
This is the error message:
Expression evaluation error at function a!dropdownField [line 136]: A dropdown component [label=“Regulation”] has an invalid value for “value”. All selected values must be present in the choiceValues array, but value was 1 and choiceValues was 1; 2.
The value 1 is correct and it exists in the choiceValues, so I do not understand why it fails.
Thanks
Bjarte
OriginalPostID-208351
OriginalPostID-208351
Discussion posts and replies are publicly visible
Parents
0
Stefan Helzle
A Score Level 3
over 10 years ago
Have you checked what value ri!property.regulationId has? For this to work it has to be NULL or some integer. Anything else will fail. Mschmitts last suggestion is what I do in general. First load some data, then check it and then use it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Stefan Helzle
A Score Level 3
over 10 years ago
Have you checked what value ri!property.regulationId has? For this to work it has to be NULL or some integer. Anything else will fail. Mschmitts last suggestion is what I do in general. First load some data, then check it and then use it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data