It should be filled with information that the user can write in some input fields. Then the data is saved to cloud. The saving works. But i wanted to repeat it, that the both Headlines have the same title, the paragraph at the top is a short description, the paragraph under the second title is the full description and below is the date and the place of it. I tried to set the complete container as a view component and as normal container but both results as this
what do i have to do that it is repeated as a complete meeting info like in the first picture?
the tutorial only shows how to save, repeat and edit one data and not some more.
And could you maybe tell me how i can edit these meetings (titel, description, etc.) and how i can delete the full meeting. I didn’t really understand from the tutorial (editing).
Hmm, I’m not sure I understand correctly, but what you’d want to do is repeat the container from a data/page/app variable that is a List of Object, in which you have the meeting data. Then you would bind each element within the repeat that you want to have data in to the currently repeated data.
Editing in a list is, hmm. It might be a problem. You can try, of course, through the bindings via current and updating the record. Deleting is trivial once you have bound the data variable to the repeat, simply add a button/icon from which on click you delete the record.
I’m not sure I went into enough detail, but let me know after getting the binding to the repeat right if you need more guidance!
The several inputs are stored in AppGyver Cloud storage. And then on my other Page (“Startseite” = home) is the list of the meetings. What you can see in the first image above, is one of my Meeting items that should be filled in with the Data what i get from my meeting creator that was stored in cloud.
And at this time, i didn’t tried to edit the data, because the repeating of data won’t work, as you can see in the second picture above. It’s not repeated as the full component. Do you have a solve for this?
To me it doesn’t look like in the picture of the Startseite that the data is bound correctly to the UI elements. Can you show me what you have done in the Composer UI, or give me your app id so I can have a look?
Alright. I think I found the problem. From the debugger I noticed that your Termine data is in a format that’s different from the fields that you have bound in the UI (found from under State -> Data References):
I’m not sure, maybe you created these data before and the schema was different? I would recommend deleting these (add a delete icon to the repeat for example) and create new ones. With a quick look, the new ones should conform to the new structure you have.
i don’t know how to delete the data. I’ve tried to set a button under the list with formula “get record collection” and next to it i put the delete record 6 times. Every one needed an id, but i don’t know the id’s of the data. so i wanted tp set id to the data variable. but this doesn’t work. so i deleted this and added the delete record 6 times to component tap of the “termine” view component. There i choosed the “property of data in repeat” of every data. But this doesn’t work too. So i wanted to get the specified id of every data, but i can’t connect to the debugger with my phone. in the settings of the app it’s only showing a circle with connecting paragraph. so i can’t connect to debugger. Both devices are in the same network and i also read the documentation
I did it… Deleting, Editing and Creating a Meeting works fine.
The problem with the debugger is also solved. It was a problem with our wlan.
The only Problem i can’t solve is that the visibility of the details container of my meeting, which is changed if i click on the arrow, is changed for all repeated items and not only for the current one.
Hi! Sorry it took so long to get back to you, I was on vacation for the last two weeks. Looking at your app, you have bound the visibility to a page variable which is the same for every repeated item, so they would naturally toggle all visible/hidden. To fix this, you would need a page variable for each component to toggle it visible/hidden by e.g. generating an array when the page is loaded and the data is there. (There will be an easier way to do this when we get our AppGyver Preview 2.X out, but that might still take some weeks)
Generating the page variable would be as follows:
Create an array of objects page variable with each object having id and boolean for isVisible
After data is loaded on page, put set page variable node and in it, set this array of objects page variable via formula, where you MAP each item from the data to {id: item.id, isVisible: false} or similar
Bind the visibility of the container you want to hide/show to the isVisible that matches the currently repeated id
Toggle this visibility by changing the value of isVisible corresponding to the id of the currently repeated