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
4 replies
Subscribers
9 subscribers
Views
1935 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, I have been to the sail recipes and can't quite figure out how to do wha
bonniet
over 10 years ago
Hi, I have been to the sail recipes and can't quite figure out how to do what I want. I would like to have a grid view that has a text item in one column and a dropdown in the other. The items in the text column will come from a process variable and the dropdowns should all be a copy of the same dropdown, basically same choice values and choice labels. A recipe and detailed instructions would be much appreciaated as I have only worked with Appian/sail for about 2 weeks.
Thanks in advance for any help!
OriginalPostID-138164
OriginalPostID-138164
Discussion posts and replies are publicly visible
Parents
0
jackm829
A Score Level 3
over 10 years ago
First off, you can view code for numerous grid-based SAIL recipes here:
forum.appian.com/.../SAIL_Recipes.html
A custom-made SAIL Recipe that does what you describe would be:
with(
local!choice_txts: {"Choice One", "Choice Two", "Choice Three"},
a!dashboardLayout(
firstColumnContents: {
a!gridLayout(
label:"Grid Label",
instructions: "Grid instructions",
headerCells: {a!gridLayoutHeaderCell(label:"Column 1", align:"CENTER"),a!gridLayoutHeaderCell(label:"Column 2", align:"CENTER")},
columnConfigs: {a!gridLayoutColumnConfig(width:"DISTRIBUTE"), a!gridLayoutColumnConfig(width:"DISTRIBUTE")},
rows: {a!gridRowLayout(contents:{a!textField(value:tostring(local!choice_txts), readOnly:true, disabled:false, align:"CENTER", required:false), a!dropdownField(value:1, choiceLabels:local!choice_txts,choiceValues: {1,2,3})})},
selectable: false
)
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
jackm829
A Score Level 3
over 10 years ago
First off, you can view code for numerous grid-based SAIL recipes here:
forum.appian.com/.../SAIL_Recipes.html
A custom-made SAIL Recipe that does what you describe would be:
with(
local!choice_txts: {"Choice One", "Choice Two", "Choice Three"},
a!dashboardLayout(
firstColumnContents: {
a!gridLayout(
label:"Grid Label",
instructions: "Grid instructions",
headerCells: {a!gridLayoutHeaderCell(label:"Column 1", align:"CENTER"),a!gridLayoutHeaderCell(label:"Column 2", align:"CENTER")},
columnConfigs: {a!gridLayoutColumnConfig(width:"DISTRIBUTE"), a!gridLayoutColumnConfig(width:"DISTRIBUTE")},
rows: {a!gridRowLayout(contents:{a!textField(value:tostring(local!choice_txts), readOnly:true, disabled:false, align:"CENTER", required:false), a!dropdownField(value:1, choiceLabels:local!choice_txts,choiceValues: {1,2,3})})},
selectable: false
)
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data