13
Views
4
Comments
How do i show total of vote for the same label when a user votes
Question
Application Type
Reactive

1-How do i show total of vote for the same label when a user votes and hide option for vote.

 using cookie 

2-how do i show total vote for this label when public user voting before that.


as at like attachment OML




test.oml

Rank: #287

Hi andrew

You can use the group by and sum method for aggerate.

Image attached.

For more information please refer to URL below.

https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Query_Data/Calculate_Values_from_Grouped_Data


Kind Regards

GroupBy.jpg

Hello Andrew,

Good morning!

For Question No. 2, when you say public, does it mean not a registered User that will render a vote?

Thank you and kind regards,

Chris

Rank: #1400

Yes 


Hi Andrew,

Thanks for clarifying, my perspective is that you need somewhat a token alike approach. But before that, you still must have a point of reference to that User (i.e. email address or others that you think more related to your requirement) were in you will have to send a link for them to be able to proceed with the voting.

1. Create an entity to store the following:

         a. Generated token (maybe use GUID)

         b. Email

         c. Datetime created

         d. Status

2. Send a url (together with the token in the url)

3. Set an input parameter to the webscreen to handle the token based from the url

4. In the preparation, validate the authenticity of the token.

That's what I can think of. You can also wait for other community members for suggestions.

Hope this helps,

Thank you and kins regards,

Chris