Foros de discusión
Reset Poll
Daniel Lawson, modificado hace 11 años.
Reset Poll
Junior Member Mensajes: 25 Fecha de incorporación: 19/10/10 Mensajes recientes
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.
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.
Apoorva Prakash, modificado hace 11 años.
RE: Reset Poll
Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientesDaniel 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 hace 11 años.
RE: Reset Poll
New Member Mensaje: 1 Fecha de incorporación: 6/03/13 Mensajes recientesDaniel 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.
Hitoshi Ozawa, modificado hace 11 años.
RE: Reset Poll
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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
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