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
8 replies
Subscribers
7 subscribers
Views
3722 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
How can I show variable with multiple values in a grid via SAIL? I can only see
zulfiqarp
over 9 years ago
How can I show variable with multiple values in a grid via SAIL? I can only see example of CDT that can be display in a grid (sample values for the variable: "One";"Two";"Three";"Four";)
OriginalPostID-140158
OriginalPostID-140158
Discussion posts and replies are publicly visible
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Is this the only column in the grid or are there other columns as well. Also would this be an a!gridLayout (editable) or a!gridField(read-only & paging)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zulfiqarp
over 9 years ago
This is the only column and its going to be read-only & paging. All I am trying to do is to display values of variable (array; multiple values) to the grid.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Here is a readonly grid that will show the values:
load(
local!test: {"one","two","three","four"},
a!gridField(
label: "Test Grid Field",
value: topagingInfo(1,10),
totalCount: length(local!test),
columns: {
a!gridTextColumn(
label: "Test Data",
data: local!test
)
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zulfiqarp
over 9 years ago
Thanks! how would I display input parameter of multiple value (ri!test) instead of local variable? Currently, ri!test shows values as "one";"two";"three";"four"; instead of {"one","two","three","four"}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Is the rule input set to be an array?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zulfiqarp
over 9 years ago
The rule input is of array text type (store multiple values)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Doing this worked for me:
a!gridField(
label: "Test Grid Field",
value: topagingInfo(1,10),
totalCount: length(ri!test),
columns: {
a!gridTextColumn(
label: "Test Data",
data: ri!test
)
}
)
test input value (ri!test): {"one";"two";"three";"four"}
And that worked for me. Are you doing something different?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zulfiqarp
over 9 years ago
It worked :) Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel