- When a user Favors or Unfavors a Post by clicking on a star button for example, and i want the program to keep record of the users Favorites status per post, what is the right method of saving and unsaving it on the database?
Do i write a Workflow that tells to Modify a thing and choose the “Post” type (the type where all post are listed) and a field (that contains a list, field type: Users) called “favoured by”, and modify the value to add current user to the list, and when he/she unfavours, a new workflow that says to modify that field to take off current user?
Or is there a better way to do it?
- what about an action that the user does on a Post which creates a new thing in a separate Type, for example the user flags a post (by clicking on a flag icon) and reports the post with some other fields for additional info, and i want to keep track of all flagged reports (and UnFlagged) by User per post:
Do i create a Workflow that tells to create a new thing in the “Reports” type, and have a field called “Posts” (and Field type: “Posts”,) and have the Current Cells’s Post as the value. and when the user unflaggs the post, a workflow that tells to delete a thing in the “Report” type which has current cell’s post as a value in the “Posts” field, and current user as the Creator
Do have i have it right or am i missing something?