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
11 subscribers
Views
1631 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hello, Could anyone help me debug this rule? I suppose that it should be ea
fabienb
A Score Level 1
over 10 years ago
Hello,
Could anyone help me debug this rule? I suppose that it should be easy but I keep receiving an error from my browser saying "An error was encountered while processing your request. Please try again."
=load(
local!pagingInfo: type!PagingInfo(
startIndex: 1,
batchSize: 5,
sort: {field: "date", ascending: false}
),
with(
local!datasubset: rule!RHO_GetCommentaireByIdMES(ri!idmes,local!pagingInfo),
totalCount: local!datasubset.totalCount,
type!Grid(
columns: {
type!GridTextColumn(
label: "Commentaire",
data: local!datasubset.data.commentaire,
field: "Commentaire",
alignment: "RIGHT"
),
type!GridTextColumn(
label: "Auteur",
data: local!datasubset.data.auteur,
field: "Auteur",
alignment: "RIGHT"
),
type!GridTextColumn(
label: "Date",
data: local!datasubset.data.date,
field: "Dat...
OriginalPostID-86060
OriginalPostID-86060
Discussion posts and replies are publicly visible
0
fabienb
A Score Level 1
over 10 years ago
...e",
alignment: "RIGHT"
)
},
value: local!pagingInfo,
saveInto: local!pagingInfo
)
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkats533
over 10 years ago
1. if this is a rule with input idmes as input - no issue, else, ri!idmes may not be right
2. case sensitive field name - Commentaire, Auteur and Date. data column uses all small letters and field column refers to camel case.
3. I would not use date as a field name as that is also a key word, use something like StartDate or JoinDate, etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 10 years ago
@fabienb Added to venkats suggestions here are a few suggestions for you:
1) Provide the name of the column in the "field" of type!GridTextColumn.
ex: data: local!datasubset.data.commentaire,
field: "commentaire",
2) Pass the totalCount as parameter to your grid.
Ex: type!Grid(
totalCount:local!totalCount,
---
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
fabienb
A Score Level 1
over 10 years ago
Thank you to both of you. I actually had to pass totalCount as a parameter to the grid to have it work. Thanks again for your help. Best
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel