I was hoping someone could give me some advice on something....
Essentially, I have a list called Reports that holds 100s of reports. It is viewed by users using the 'User View'. I also have a view called 'Favourites' and I want users to be able to add reports to the Favourties view. They will do this by clicking a little picture of a heart with a plus (+) on it. Once clicked the picture will become a heart with a minus (-) on it, which when clicked removes the item again from the Favourites list.
The way I have attempted this so far is to create a Person column on the Report content type allowing multiples (psFavourite). For the Favourites page, a DVWP displays all reports where the psFavourite column contains the [CurrentUser] - I had to edit the CAML code for this. The heart button uses an XSL when test to determine whether to show the plus or minus icon depending on whetehr the psFavourite column contains the current user.
When the plus heart is clicked, I use jQuery to start a workflow 'Add to favourites'. The workflow adds the contents of the psFavourite to a variable, appends the current user, then saves it back.
The only problem I have however, is that I don't know how to get the minus heart to remove the current user from the psFavourite column with a workflow step. Any ideas?
Alternatively, is there a better way of doing this with SOAP or something?
Thanks in advance