Repeaters. Relational information blank.

I have made a page containing repeaters. They look like a great idea.

When I link the text & pics to the fields in my dataset. The fields that are in the main dataset are fine, however, the relational fields from other databases are blank.

What am I doing wrong? Please :frowning:

Hello Hugh,

Assuming you have connected the reference fields in the Database to another one correctly, here are a few things to check for:

  1. Make sure the repeater is connected to the main data-set
  2. Find and confirm which field is being referenced


In the above case, the name field is the field that we are getting the data from from the referenced collection.

  1. Go to your referenced database and make sure that field is not empty/is valid


Above we see that name is a valid and not empty field so in theory it should work
4. In our main database it should look something like this:

  1. On the repeater I added a connection to the reference field as well as a normal text field, results:
    (Referenced - left, Main - right)


Hope this helps,
Majd

1 Like

Dear Majd

I want to thank you for taking the time to look at this. As with all things to us newbies, it was something stupid (discovered this late last night). The fields where all referenced fine in the database but on the export function I had to add the fields I wanted to reference from the main database. I never knew this as I had already clicked on the images and text boxes and chose the reference fields from other databases.

So it took me days of pulling my hair out and all I had to add was:

.include("referencefieldA", "referencefieldB", "referencefieldC") 

Start of export code now says:

export function button1_click(event, $w) {
wixData.query(‘DatasetName’)
.include(“referencefieldA”, “referencefieldB”, “referencefieldC”)

Another mountain crossed, but still got the Himalayas in front of me.

Once again thanks. Means alot to us that you take the time. Have a great day. :slight_smile:

Regards

Hugh

Greetings Hugh,

Glad you figured out! Reminded me of a quote:

"There’s no glory in climbing a mountain if all you want to do is to get to the top. It’s experiencing the climb itself - in all its moments of revelation, heartbreak, and fatigue - that has to be the goal. "

Good luck in the future :)!
Majd