Data View not working

Not sure if I’m doing something wrong. I have a server connect that gets continents, countries and regions from an API. I’m trying to create a data view to filter the countries but the data view isn’t outputting anything at all, even without a filter.

<dmx-data-view id="dv_countries" dmx-bind:data="sc_locations.data.get_countries.data.results"></dmx-data-view>

The server connect is outputting the data, but I can’t even see the data view in the console…

It’s a brand new PHP project. I tried turning on/off beta and restarting Wappler.

Hi Heather,

Try the data view with this binding:

<dmx-data-view id="dv_countries" dmx-bind:data="sc_locations.data.get_countries"></dmx-data-view>

Nope. Same result. Weird!

I have checked data view in both v6.3.3 stable and beta channels, and this is working as expected.

May be wappler include dmxDataTraversal:{} is missing in the page header.

Thanks for helping!

I’ve created a whole new project NodeJS this time, downloaded all of the data I needed from the API into my database, created the server action to get the data, and then created the data view and it still doesn’t work. The server connect and data view are on the main layout page so shouldn’t need an include. The data traversal script is in the header. I’ve tried both beta and stable on 6.3.3

I figured it out. The Data Views aren’t working without a filter. I don’t think this should be the default behavior. @George ?

@guptast - did you add filters to yours or were they working without one? Thx.

I’m getting data with both data view filter settings - with and without. It’s really weird that it’s only working with a filter in your case.

Download the update posted here: