When I create a Repeating Group and apply constraints, it always shows the full results first for a brief half second. Is there any way around this?
Reverse it. Put the search for the data source into the constraints area so itās only shown if the constraint is met.
Do you mean use Search for Steps:filtered instead of just using Search for Steps and then using a constraint?
As that doesnāt work either. Not sure how to put Search for Steps only into the constraint area?
Sorry, I meant āconditionalā area. All the elements have them. Hereās an example from a repeating group in my app
Iāve got different searches which are run when different conditions are met. Thereās also a default search, but thatās not strictly necessary. Depends on what you want to happen when.
Ah okay cool. Shouldāve thought of that.
I worked out that it was actually not the search display but the sort display. Iām using the drag drop re-ordering steps described elsewhere in the forum and it will show the old order first and then the new order. Attempting the above solution just for the sort breaks the drag drop functionality but Iām sure Iāll figure out something after tinkering.
You can do all of the work in an invisible repeating group. Then set a condition in the visible repeating group like āwhen invisible repeating groupās count > 0ā and set the visible repeating groupās data source to the invisible repeating groupās list.
That way the visible stuff wonāt update until the list is done changing.
While this didnāt work for me (the old sort order still showed for a brief second first after following your invisible suggestion), I think that what you are saying in essence is ādonāt show the repeating group until the sort order has time to be correct.ā
If thatās the case, there are a few ways I can achieve this and some have proven to work already, itās just a case of finding which scenario will load my repeating group the quickest as if I do it this way, instead of the repeating group showing incorrect sort order briefly, it will briefly not show at all until the sort order is correct.
I still have to tinker to see how I can make my repeating group show quicker (or maybe show a progress bar) but these all show sort order correctly since there is a delay in repeating group showing:
- Only show repeating group in correct sort order when another group on page is visible
- Change workflow order so repeating group with correct order shows as soon as possible
- Setting the data source NOT as a condition but changing the workflow order so it shows last in correct sort order
As a bonus I ended up discovering āSlowā button in the debugger and it was so helpful.
Thanks for pointing my brain in the right direction! Feel free to comment if you still think Iām on the wrong track.
Jess
For anyone coming across this thread in the future, the final solution for me was to leave the repeating group alone (shows on page load with Search set up normally to show on page load) and to instead hide the group inside the repeating group that held all the data until the entire page had loaded.