RE: Polls data, poll data with votes?

László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Hi!How can I get the all the polls from the server?In the api there aren't any methods to resolve polls list.There are a method to query poll by questionId (/polls.pollsquestion/get-question) but how can I get questionIds?
The other question is, ok i can get the question data from server with above method, but how can I get votes, choices for the question? I can vote via PollsVote api, but I need a choiceId.How can I do that?
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Can you add a LPS ticket? right now I don't think it's possible... the solution would be adding several remote methods that basically expose the local service methods (and call permissions if needed).
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
I'm new for LifeRay, how can i add LPS ticket?
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Here: https://issues.liferay.com/secure/Dashboard.jspa, request a new account and then create a feature request under the PUBLIC - Liferay Portal Community Edition (LPS) project.
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Hi! I'm create an issue in Jira, https://issues.liferay.com/browse/MOBILESDK-75.
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
I've asked to move the issue to LPS, it's a portal issue right now.
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Can you tell me when will you publish the fix?
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
You can monitor the status here:  https://issues.liferay.com/browse/LPS-97481 (we moved it to LPS because it's a portal issue).

In the meantime you can generate the services yourself, it's basically calling the liferay services builder (https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/what-is-service-builder) in your module and calling the underlying local services for polls... I can guide you a bit or send you the code.
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Thank you! We created some services for missing the functions.