Empty List after binding Collection List

Hi,

I have 2 pages - Test 1 and Test 2 and the backend is Xano.

Test 1 displays a list of orders from a collection called Orders. When an order id has been selected, Test 2 accepts it and runs it as an input on a collection called OrderDetails.

On Test 2, I run a workflow on page load to fetch the OrderDetails collection using orderid as the input.

The problem is that on page Test 2 when I bind the Collection List in the table to the OrderDetails data, even though the information is shown in the results screen, the table shows “Empty List” and any data that I try to bind to the text is not shown.

I also have another question.

In the video on Dynamic Collection pages, Joyce uses REST API to query her Xano tables. Is there any difference between using the Xano endpoint directly and using REST API?

Would appreciate any assistance.

Thanks
Steve

You can’t bind an object, you need to bind directly the various properties of that object into your design. So instead of binding OrderDetails.data, you just click on your description text and bind OrderDetails.data.description and so on.

No difference, just better Xano related UX when using the plugin. You can use either, but REST API is less ergonomic to call Xano endpoints compared to Xano Plugin.

On my Test 1 page, I have the table collection list bound to the data object.

and then I use the variables to bind the data in the cells.

Why wouldn’t this work on Test 2?

Uhm :eyes:

My terminology may be incorrect, but on the Test 1 page I have bound the table collections list to Orders.data.

On the Test 2 page, I do the same thing and I get this.

I am using the same collections list methodology as on page Test 1.

Ok,

I think that I have realised why. The Orders GET endpoint in Xano queries all records and hence returns a list whereas the OrderDetails endpoint only GETs a single record.

Thanks

1 Like

Yes