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
11 replies
Subscribers
7 subscribers
Views
3551 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Selection Task Ids giving Error on SAIL
rishub
over 7 years ago
Hi All,
I am trying to get a UI where I can select multiple Task Ids, so I created an all tasks Report with Task Ids. The reportshows fine until I add selection part to report. As soon as I am adding the identifier & selection part, I start getting error: Interface Definition: Expression evaluation error at function a!gridField [line 119]. Can anyone guide me about the issue? Thanks
Attached is the SAIL Code
OriginalPostID-259604
task_selection.txt
Discussion posts and replies are publicly visible
0
reginaldm377
over 7 years ago
I took a quick glance at your code and I think your issue is within your a!gridSelection(). You're trying to index into "selected" but the parameter doesn't exist in your a!gridSelection().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ramesh Gudipati
over 7 years ago
Hi Rishu,
Can you check data in the column "c7". I think this column should have null values as you are using "c7" data as identifiers.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ramesh Gudipati
over 7 years ago
And also as suggested by Reginald, "selected" parameter is missing in a!gridSelection().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
@Ramesh, c7 represents Task Id which can not be blank. @reginaldm377, I did update code to use local!gridSelection: a!gridSelection(
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 25
),sort: a!sortInfo(
field: "c7",
ascending: true
)
)
But was still getting the error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ramesh Gudipati
over 7 years ago
Can you update
local!gridSelection: a!gridSelection(
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 25
)) to
local!gridSelection: a!gridSelection(
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 25
),
selected:{}) and try.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
Yeah, I did try it Ramesh but still getting the same error
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ramesh Gudipati
over 7 years ago
Hi Rishu,
I see you are referring to 4th column field for column 7 data. I feel it works fine if you change the below
a!gridTextColumn(
label: local!report.columnConfigs[4].label,
field: local!report.columnConfigs[4].field,
data: index(local!report.data, "c7", {})
) to
a!gridTextColumn(
label: local!report.columnConfigs[7].label,
field: local!report.columnConfigs[7].field,
data: index(local!report.data, "c7", {})
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
Ramesh, i am not sure why but it is not working for me. can you please share your code?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
I got it working, Thanks Ramesh
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm377
over 7 years ago
Hi Rishu, out of curiosity, what did you change to get your code working?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>