Count only unique entrys (ignore recurring)
This is an open discussion with 1 reply, filed under General.
Search
Nevermind, got it!
Just grouped the DS results by User ID, and counted only the first entry of each.
Create an account or sign in to comment.
Hey guys, today I found myself in a very complicated situation. Here's the deal:
I developed (on rush) an app for Facebook in which users can vote in one option, and I store the User ID and Vote Option in a section. So far so good.
Also, I wrote a quick JS code to check if the user already voted and forbid him/her to vote again.
The problem is that because of the deadline I coudn't find a really good way to forbid multiple votes, and sometimes, when users refresh the page in specific ways, they can vote again. :(
I was wondering it there's any way I can filter via DS or XSLT only unique entries by User ID.
Here's a sample of my return XML (with a basic DS)
http://pastie.org/4810579