Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
Actually, after more reading, I think using SOAP will be the easier and more efficient way to do this. The button click will use jQuery/SOAP to read the Favourties column current value into a variable, append/remove the current user, and update the Favourites column again. Any advice on how to do this would be appreciated... – Cliff Shamone Nov 9 '12 at 13:37

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.