a) I want to have a vertical scrolling Repeating Group, with max 5 rows visible at any one time.
b) The record set only currently has 3 rows
c) The repeating group would collapse in height to the 3 visible rows and grow up to 5, then scroll if subsequent data was added.
If youâre okay with using extended vertical scrolling, this can be accomplished using the :items until option. For example, the data source of the repeating group could be âDo a search for Users:items until 5â. If you only had 3 Users in your app, the repeating group would collapse to show only 3 cells, and grow to 5 once the app had 5 Users. Lyndon found the solution in this post.
I had tried this approach before, but there appears to be an issue where the repeating group is full screen height (with no content while it is loading and then shrinks down to the correct height. That is why I went back to a fixed set of rows
I maybe have to have a bit more of a play to see if I can work round this or work out why it does the weird jump!
If you set the number of rows to be 1 by default, does the same thing happen? That way it should start small and then expand to five, instead of shrinking down? (I think!)
Ohh! Hmm, mine does not do that with the same setup for some reason. I just tried this on a blank page and I think it may work (but possibly not if you have a lot of elements to load on your page). What if you set the repeating group to be visible on page load, and then create a workflow for âWhen page is loadedâ hide: repeating group. Then show it when the button is clicked? This way it should âloadâ everything before the User clicks to view their notifications.
The repeating group is on a Group Focus, which is on a reusable element for the user_toolbar. The user_toolbar is visible on every page where the user has logged in. It doesnât matter how much content is on the page, it still does it.
Yes, I think itâs a bug as well. When I tried, this only happened when the repeating group was contained within a GroupFocus element, not when it was placed on the page itself.