# Repeat Group Refreshing

**URL:** <https://forum.bubble.io/t/repeat-group-refreshing/10892>\
**Category:** Database\
**Created:** [February 25, 2017, 11:15pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892 "2017-02-25T23:15:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadsanders89](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shadsanders89](https://forum.bubble.io/u/shadsanders89)\
**Post date:** [February 25, 2017, 11:15pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/1 "2017-02-25T23:15:10Z")

</div>

I am trying to figure out how to refresh a repeat group. I’ve read a few of the other post but couldn’t quite find an answer. Here is what I am trying to do. I have two repeat groups

1.) Open Orders  
2.) Claimed Orders

Once a user clicks the “Claim Order Button” I want the order to disappear from the repeat group and populate the Claimed Order repeat group

---

<div class="post-metadata">

**Author:** ![philip](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philip/32/17830_2.png) [@philip](https://forum.bubble.io/u/philip)\
**Post date:** [February 25, 2017, 11:25pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/2 "2017-02-25T23:25:38Z")

</div>

You will need to create a new workflow on button click for Element Actions -\> Group -\> Display Data

Send the new search query to the repeating group of a certain type of data (orders in your case).

This should force a refresh of the repeating group.

---

<div class="post-metadata">

**Author:** ![philip](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philip/32/17830_2.png) [@philip](https://forum.bubble.io/u/philip)\
**Post date:** [February 25, 2017, 11:28pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/3 "2017-02-25T23:28:27Z")

</div>

In many of my apps I do something quite different though:

I have a custom state set on the repeating group. ie: “Active Data Type” which is just a text string.

I then have conditional statements on the repeating group that say "if the repeating group’s custom state Active Data Type = ‘open’ then data = ‘insert new search query searching for open orders’, same for closed orders.

Edit: adding more info

You then can create a workflow on button click that sets the new custom state. Element Actions -\> All Elements -\> Set State

This state is a text string, ie ‘Open’, if the open orders button was clicked.

By setting the data source to be a dynamic if/then variable you can swap out and sort data in a repeater pretty easily.

---

<div class="post-metadata">

**Author:** ![shadsanders89](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shadsanders89](https://forum.bubble.io/u/shadsanders89)\
**Post date:** [February 26, 2017, 12:00am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/4 "2017-02-26T00:00:43Z")

</div>

Thanks! Works perfectly

---

<div class="post-metadata">

**Author:** ![Rogelio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rogelio/32/639_2.png) [@Rogelio](https://forum.bubble.io/u/Rogelio)\
**Post date:** [May 21, 2017, 12:45am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/5 "2017-05-21T00:45:29Z")

</div>

hey @philip

I have a similar case and was hoping to see if you have any other suggestions. Creating a custom state as you’ve suggested here wont work in my case.

In my case an Order is placed via a mobile app and I need the order to instantly appear in a repeating group of Open Orders which is opened on a screen on a tablet. At times it is taking up to 10mins for the Order to appear in the Open Orders queue.

How can I force a repeating group refresh when an order is placed so that it instantly appears on the queue?

---

<div class="post-metadata">

**Author:** ![philip](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philip/32/17830_2.png) [@philip](https://forum.bubble.io/u/philip)\
**Post date:** [May 21, 2017, 1:57am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/6 "2017-05-21T01:57:37Z")

</div>

Have you tried setting up a “Do when condition is true” workflow?

> **[Bubble Reference](https://bubble.io/reference#Events.ConditionTrue)**
>
> Full reference for each Bubble element, feature, plugin. Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![Rogelio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rogelio/32/639_2.png) [@Rogelio](https://forum.bubble.io/u/Rogelio)\
**Post date:** [May 22, 2017, 6:31am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/7 "2017-05-22T06:31:20Z")

</div>

I haven’t tried that, but I’m struggling to figure out the condition statement.

---

<div class="post-metadata">

**Author:** ![andrew](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrew/32/3404_2.png) [@andrew](https://forum.bubble.io/u/andrew)\
**Post date:** [May 22, 2017, 6:57am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/8 "2017-05-22T06:57:10Z")

</div>

[You might check out this thread.](http://forum.bubble.io/t/prompt-a-popup-when-a-webhook-creates-a-new-db-record/13073/4) Similar concept except the method used to add the record is different, but the “do when condition is true” to create a popup or in your case, refresh RG data would be similar.

---

<div class="post-metadata">

**Author:** ![Rogelio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rogelio/32/639_2.png) [@Rogelio](https://forum.bubble.io/u/Rogelio)\
**Post date:** [May 22, 2017, 7:27am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/9 "2017-05-22T07:27:16Z")

</div>

thanks @andrew this is helpful… i’ll give this a try.

---

<div class="post-metadata">

**Author:** ![Rogelio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rogelio/32/639_2.png) [@Rogelio](https://forum.bubble.io/u/Rogelio)\
**Post date:** [May 22, 2017, 10:48am UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/10 "2017-05-22T10:48:34Z")

</div>

thanks @andrew - worked perfectly!

---

<div class="post-metadata">

**Author:** ![RobAtMeetSunday](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@RobAtMeetSunday](https://forum.bubble.io/u/RobAtMeetSunday)\
**Post date:** [March 9, 2021, 11:19pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/11 "2021-03-09T23:19:41Z")

</div>

I have been using the method described in this thread with effectiveness. However, this method appears ineffective when the desired group is a nested inside of another repeated group.

I target the outer repeated group with a call to display data and pass in a new “Date” header, but the inner group does not register that the data has changed.

---

<div class="post-metadata">

**Author:** ![pathomap](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@pathomap](https://forum.bubble.io/u/pathomap)\
**Post date:** [March 19, 2024, 2:37pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/13 "2024-03-19T14:37:51Z")

</div>

How do you do it if there is a repeating group inside a repeating group?

---

<div class="post-metadata">

**Author:** ![pathomap](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@pathomap](https://forum.bubble.io/u/pathomap)\
**Post date:** [March 19, 2024, 2:38pm UTC](https://forum.bubble.io/t/repeat-group-refreshing/10892/14 "2024-03-19T14:38:13Z")

</div>

> [@RobAtMeetSunday](#):
>
> I target the outer repeated group with a call to display data and pass in a new “Date” header, but the inner group does not register that the data has changed.

I am also having troulbe doing this. Have you figured it out yet?
