Fórum

Reset Poll

Daniel Lawson, modificado 11 Anos atrás.

Reset Poll

Junior Member Postagens: 25 Data de Entrada: 19/10/10 Postagens Recentes
Using Liferay 6.

Is there a means of resetting a poll after you have the results in hand?

The reason for wanting to do this, is we are having a vote on 50 items. So I create 50 polls and tally up the top 25, I'd like to reopen those top 25 for people to vote on again, without having to create 25 new polls that state the same exact info.

Thanks.
thumbnail
Apoorva Prakash, modificado 11 Anos atrás.

RE: Reset Poll

Liferay Master Postagens: 658 Data de Entrada: 15/06/10 Postagens Recentes
Daniel Lawson:
Using Liferay 6.

Is there a means of resetting a poll after you have the results in hand?

The reason for wanting to do this, is we are having a vote on 50 items. So I create 50 polls and tally up the top 25, I'd like to reopen those top 25 for people to vote on again, without having to create 25 new polls that state the same exact info.

Thanks.



Hello Daniel,

Nope, there is no "copy book" way for this.

You need to write some custom code for that.

Hope this will help.

Thanks and Regards,
Apoorva Prakash
bin yang, modificado 11 Anos atrás.

RE: Reset Poll

New Member Mensagem: 1 Data de Entrada: 06/03/13 Postagens Recentes
Daniel Lawson:
Using Liferay 6.

Is there a means of resetting a poll after you have the results in hand?

The reason for wanting to do this, is we are having a vote on 50 items. So I create 50 polls and tally up the top 25, I'd like to reopen those top 25 for people to vote on again, without having to create 25 new polls that state the same exact info.

Thanks.


Hello Daniel,
I am encountering this problem now.Do you have the solution on the issue?
Thanks.
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Reset Poll

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Try using the deletePollsVote method in PollsVoteLocalServiceImpl class.

http://docs.liferay.com/portal/6.1/javadocs-all/com/liferay/portlet/polls/service/impl/PollsVoteLocalServiceImpl.html

You may be able to run a script to delete the votes from the Control Panel -> Server Admin

http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/running-scripts-from-the-control-panel