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
9 replies
Subscribers
8 subscribers
Views
2532 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Afternoon all, I have an odd issue with a dynamic gridLayout. Th
garethm
over 9 years ago
Afternoon all,
I have an odd issue with a dynamic gridLayout.
The grid has a dynamic number of both rows and columns, with total and subtotal rows and most of the time this is working - however..........
when there is only 1 row of data I am getting an error of:
"Rule '?' has 1 parameters, but instead passed 3 parameters."
I understand the error, but not how to solve it......
For 1 data row the a!applyComponents is returning:
{Total row
SubTotal row
data row}
and this leads to the error - with the 3 rows being the 3 parameters in the error above.
HOWEVER
If there are 2 datasets:
{
{Total row,
SubTotal row,
data row},
{data2 row}
}
is being correctly rendered with 4 rows in the grid.
Does anyone have any ideas why this is happen... and more importantly how to solve it!
Thanks in advance
Gareth
OriginalPostID-158868
OriginalPostID-158868
Discussion posts and replies are publicly visible
Parents
0
Tim
Certified Lead Developer
over 9 years ago
Hi Gareth
I've seen this before.... problem is I can't remember how I got round it last time! I assume you can test the length of the array, if there is only one row just run the gridRows expression with a fixed index of 1 and without the applyComponents - this works in your test app, not sure about your actual design though.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Tim
Certified Lead Developer
over 9 years ago
Hi Gareth
I've seen this before.... problem is I can't remember how I got round it last time! I assume you can test the length of the array, if there is only one row just run the gridRows expression with a fixed index of 1 and without the applyComponents - this works in your test app, not sure about your actual design though.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data