Search for "is in" bug?

I have an element that pulls a list of Unique IDs:

In it, I have a repeating group where I perform the search, with the constraint, unique id is in the list of texts, which are the list of IDs:

With this repeating group, I build a dynamic JSON:

This serves to make the labels of a canvas structure we’re building dynamic, meaning if the label changes there in the JSON, which is dynamic, it changes the node’s label on the canvas…

When everything is initially loaded, it works perfectly:


You can see that in the dynamic JSON and in the list of IDs, the same ID appears perfectly, meaning the item was loaded dynamically there.

However, the problem comes when any UPDATE happens to that item; if I update any column in this item, for example, it disappears from the “search for” instantly:


And so my dynamic labels structure doesn’t work, because if I edit the item’s name, it disappears from the search, even though the same ID remains in the list of texts. And if I refresh the page, then it shows up again.

Has anyone experienced this problem? :slightly_smiling_face:

What happens when you render the RG? Put some text or something. Is the search result consistent?

Also, you’re using a RG as a data source to hold a Search result…from my experience, it’s better to use a plugin or setup a pipeline to store data into a state list. You seem like a capable developer from your posts, it’s really easy to build a plugin to hold a Search list.

1 Like

A bit of a long-shot, without knowing the cause of the problem,

Can you try to force the Search to refresh after the update, assuming the update is in a page workflow.

For example, a workflow to set a State to current date, and include the State in the Search as a constraint > Modified Date

When it’s rendered the first time, it works perfectly; the problem is when any item there is edited, then in the dynamic expression I create, that edited item simply disappears.

Inside my plugin, I have a field where I load this dynamic text/json.

What I did now is pass this dynamic text to a custom state, and it apparently worked, but I’m still not 100% happy with the result. It’s really a Bubble issue that we have to work around.

Anyway, thanks for the help; I’m glad my posts show something good about me.

I’ll try something similar to that as well.

It’ll bring more clarity to the issue if you can verify if the RG you are using as a data container displays the list correctly if it has to render child elements.

I had a similar setup and issue with a custom plugin. Turned out that I forgot to add a stop switch in it’s update() to not update a specific state if a specific value is false.

Also the plugin state I was using as a constraint was not the same plugin state I was debugging.

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.