Hi Vladimir,
I went through all the mission steps, however I still can’t wrap my head around some items.
Would it be possible for you to help me from time to time with my questions?
My current struggle:
I have two tables - users and items. Relation is from user to items, one to many (meaning - one user can have many items).
So, when I’m trying to put this into repeater data for container, it can’t retrieve this data, because it’s an array.
However if I put data binding as “useritem[0].itemname”, it shows the first element of the array. But my goal is to list all items that have relationship to a particular user…
Please advise.
PS. I can speak english or russian, whatever you prefer.
the RepeaterDataLogic expects a list, so you should return in the logic a reference to a list, so the data-binding must bind to a list in the parent data model
take a look at these docs, it should help understand the concept with DataModels/Repeaters
I think I found a better solution, I’d like to hear your feedback -
I created a table view where I put the columns I need and it simplified everything, additionally I’m now able to sort the list of items.