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
1934 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
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
0
bonniet
over 10 years ago
I had found the SAIL recipes and was having trouble translating into what I needed, but was finally able to get it working. Thank you so much for your help, It is much appreciated.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 10 years ago
Well for doing that use editable grid,have a look here
forum.appian.com/.../SAIL_Components.html
there are some examples shown there, no for using dropdown field simply use a!dropdownField() in place of textField same as you use normally while writing SAIL code for the dropdown, I hope this helps
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 10 years ago
now *
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel