Fórumok

Reset Poll

Daniel Lawson, módosítva 11 év-val korábban

Reset Poll

Junior Member Bejegyzések: 25 Csatlakozás dátuma: 2010.10.19. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Reset Poll

Liferay Master Bejegyzések: 658 Csatlakozás dátuma: 2010.06.15. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Reset Poll

New Member Bejegyzés: 1 Csatlakozás dátuma: 2013.03.06. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Reset Poll

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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