Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Get several properties of a question via RPC

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 5 days ago #227537 by tammo
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3
Own server or LimeSurvey hosting: own
Survey theme/template: Vanilla
==================
I am trying to work out a way of presenting results, but for that I need to know for each question:
  • should the question be shown in public statistics?
  • Should a chart be shown?
  • If so, what type of chart
  • What are the additional css classes for this question?
I have not been able to find out if this is possible to retrieve via the RPC. Do you know that?

Thanks in advance.

Tammo ter Hark


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 days ago - 2 years 5 days ago #227551 by tpartner
Replied by tpartner on topic Get several properties of a question via RPC
As far as I know, those question attributes are not available with the get_question_properties API method.

I think you will need to access the [prefix]_question_attributes table directly with a SQL query.

 

 

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 2 years 5 days ago by tpartner.

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 5 days ago #227552 by tammo
Thank you very much, I already suspected this, but was not sure.

Is there a way to use SQL statements via the RPC or do I really approach the database itself via the script?


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 4 days ago #227553 by tammo
Thinking about this: probably not. Would be a security thing.... ;-)


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 4 days ago #227554 by tpartner
Replied by tpartner on topic Get several properties of a question via RPC
Yes, you have to do it outside of the API. In some instances, I use both because the API is easier but somewhat limited.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose