Showing repeating group data in a popup

Hi,

I’m trying to show a list of a user’s own listings on a popup, but it comes up empty for some reason:

My page has a type of content: Listing
on the page, the user clicks a button: Edit listing
the button triggers a workflow to show a popup

The popup has a repeating group with a content type: Listing and data source: current user’s own listings (the own listings -attribute is a list of listings in the user data type)

The RG’s cells contain 2 text elements: Parent group’s listing’s location and Parent group’s listing’s name.

The popup appears as blank on the preview.

What am I doing wrong here? Any insights are highly appreciated :slight_smile:

@tomi.dostinov set a state for your pop up and then use “set state”
image

I like states over send data to pop up.

Hmm. The preview still seems to be empty. Not sure if I understood that part fully, but I actually tried both ways; to set a state for the popup, and the display data in a popup -approach. Neither seems to be working to solve the blank list issue.

It’s as if the text fields in the repeating group’s cells are invisible

@tomi.dostinov Make sure the pop up data type is Listing if not you could pass text to the state and get data by “do a search of listing” with conditional you pass as text in state.

Maybe the size of your text element is too small and can’t display the word. from the debugger, does the repeatingGroup have any values?

Does “current user” definitely have the correct data entered in your database? Double check that the calls in your editor match the fields in your data type, then double check that the entries in the database are populated in those fields.

Also, if you haven’t logged in, current user has no database entries.

The popup content-type is irrelevant here, so don’t worry about that, as are setting custom states on the popup…

The data you’re trying to display is simply the Current User’s listings, so no need to display any data, or set any custom state values, on the popup.

Without seeing inside your app it’s impossible to say what’s wrong here…

But, as has been mentioned already in this thread, one fairly likely explanation is that you simply don’t have the data you think you do in your database (i.e. the current User doesn’t have any listings).

It could also be the way you’ve set up your group within the RG cell.

Or it could be privacy rules.

The simplest way to know is to check in the Debugger for yourself to see what’s going on.

Otherwise, feel free to share some more detailed info, screenshots, or a read-only editor link, of you want someone to be able to give more specific help.

Found it!
The data source was the issue here (current users own_listings), as I hadn’t managed to save that particular data to the database, so I changed the source to: “do a search for listings” created by the current user. That did the trick :slight_smile:

Thank you all for your contributions!!

1 Like

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