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
9 replies
Subscribers
6 subscribers
Views
3124 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
In my Tempo tasks (7.4) I am trying to use cascading dropdowns with rules.
saram
over 11 years ago
In my Tempo tasks (7.4) I am trying to use cascading dropdowns with rules.
I tried with this code (inputs:type and failure) but it doesn't work (my rule - getFailureDescription works).
= load(
local!type,
local!failure,
a!formLayout(
firstColumnContents: {
a!dropdownField(
label: "Type",
labelPosition: "ADJACENT",
required: true,
choiceLabels: {
"Tread",
"Wire"
},
choiceValues: {
"Tread",
"Wire"
},
value: ri!type,
saveInto: local!type
),
a!dropdownField(
label: "Failure",
labelPosition: "ADJACENT",
required: true,
choiceLabels: {
rule!getFailureDescription(
local!type
)
},
choiceValues: {
rule!getFailureDescription(
local!type
)
},
value: ri!failure,
saveInto: local!failure
)
...
OriginalPostID-96359
OriginalPostID-96359
Discussion posts and replies are publicly visible
Parents
0
Annelise Dubrovsky
Appian Employee
over 11 years ago
The error message is indicating that you have duplicates in the array for choiceValues. Can you confirm the result of rule!getTypeExp() and make sure that it doesn't contain any duplicate data? You can do so by going to an expression rule, entering =rule!getTypeExp() as the definition and clicking on "Test Rule".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Annelise Dubrovsky
Appian Employee
over 11 years ago
The error message is indicating that you have duplicates in the array for choiceValues. Can you confirm the result of rule!getTypeExp() and make sure that it doesn't contain any duplicate data? You can do so by going to an expression rule, entering =rule!getTypeExp() as the definition and clicking on "Test Rule".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data