I think I need your support. It returns an array as you see above. I need to use this array in a repeater in wappler. However, despite trying everything, I couldn’t get a result. There seems to be a problem that I don’t think I’ve encountered before.
I can get the value in the array with dmx.app.data.arr1 (I can’t get it with dmx.app.data.content.arr1)
dmx.parse(‘arr1’) returns array values in chrome console, but when I use this value in repeater, unfortunately the loop works but I cannot reach the values because repeater returns something different.
I also see the result when I test the first return value from the console to check the returned values. {{dmx.app.data.arr1[0].id}}
I use this line in the same way in the project, but nothing appears on the screen.
here it should have written as “Son Güncellemeler - 1233877490226033”
Need your support on this issue. what am i missing?
The root of data on the page is the dmx.app.data level. To see the data as the page sees it you can use dmx.parse() in console
i.e. dmx.parse("arr1[0].id")
Yes, I am getting results in console. there is no problem with that. What confuses me is why I can’t get the result I get from the console in the project.
For setting the data you should never access the dmx.app.data directly. Use dmx.app.set('arr1', contacts) to set the data. The dmx.app is only available when the app is initialized, if you want to store some data before this then you can store it in the global scope using dmx.global.set('arr1', contacts).
Also make sure you have no other component on the page with an id arr1.
Hi @patrick ,
When I remove the repeater below and I want to get a single data, there is no problem. However, when I use arr1 with a repeater, I get a browser “out of memory” error (I’m only shooting 30 lines. There aren’t many more)
Render process gone
<h3>Testing Son Güncellemeler - {{arr1[0].id}}</h3>
Then the messages probably contains circular references. You should only set plain arrays and objects as data, not any classes or complex objects with references on it.
that is, when retrieving data from indexedDB, it should be a plain array? have I got it right ?
But the results returned from indexedDB are returned as an array with objects such as NoSQL. ??? I don’t know how to handle this