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
3130 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
jesse.triplett
Appian Employee
over 11 years ago
I think an if statement is still a good way to go.
1)Initialize local!type:"" as a null text.
2)Put an if statement around the second dropdown
if(isnull(local!type),{}, a!dropdown etc...)
This way the second dropdown only appears and executes the query rule when a choice has been made for local!type
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
jesse.triplett
Appian Employee
over 11 years ago
I think an if statement is still a good way to go.
1)Initialize local!type:"" as a null text.
2)Put an if statement around the second dropdown
if(isnull(local!type),{}, a!dropdown etc...)
This way the second dropdown only appears and executes the query rule when a choice has been made for local!type
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data