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
10 subscribers
Views
12188 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 9 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
bjartek
over 9 years ago
Hi all. Thank you for all your good suggestion. A check through all the fields showed that the property.regulationId was defined as Text, thereby creating the error. Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
bjartek
over 9 years ago
Hi all. Thank you for all your good suggestion. A check through all the fields showed that the property.regulationId was defined as Text, thereby creating the error. Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data