Hello!
I have been trying to find a recent tutorial on how to handle this and it feels like it should be really simple but I haven’t been able to get this to work just yet.
I have an entity called ‘PeopleProfile’, which contains two attributes: “name” (String) and “id” (UUID).
I want a view where the user is able to see a selectable list of each “name” from every object in ‘PeopleProfile’, select the names they want, and then (after clicking a save button) an action triggers those selected names and all attributes from that person’s object to be saved as individual records to a new entity called “Group1”. (If the user changes those selections later, the records should be deleted or appended so that there are no duplicates)
After working with any selectable list examples that I find online, I seem to always have trouble with the transformation because they’ll typically use a simple string array with fixed values within the view and won’t show what to do with those selected elements. I need to be able to fetch all attributes for all objects within the ‘PersonProfile’ entity, let the user filter those objects by ‘name’ in the selector, and then create new itemized records for each selected object and all of its attributes in the ‘Group1’ entity.
I keep running into errors where the types can’t be converted and I need a better understanding on how to structure the flow of this process. If you could point me to a relevant example/tutorial or break down how the code should look, it would be much appreciated!
Thanks!