Hello, bubblers!
I was looking around how to create a flow for this scheme:
User log in
User makes a search request
User can bookmark some search results and save it to favorites
User can operate with his favorites in his user account page
So the problem is that I can not separate one user’s favorites from other users and can’t find information about how to make it work.
maybe create a field in the bookmark data type called user or whatever you want and the type is user. when a post is bookmarked, user= current user. and when showing the bookmarks in a repeating group or whatever, make the data source: do a search for book marks, and add a constraint which is user= current user.
or, you can add a data field to the user which is a list of bookmarks, and when a bookmark is added, make changes to user and add to current user’s list of bookmarks, and in the repeating group, use the bookmark as the data type, and current user’s list of bookmarks as the data source.
the second way should should be easier to do , i just thought of 2 ways to do it