Welcome to the LimeSurvey Community Forum

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

API get_question_properties: language setting problem

  • aleksandrsa
  • aleksandrsa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago - 2 years 9 months ago #217831 by aleksandrsa
Hi,
I've been exploring the API funcitionality and it worked very well via R package Limer. My survey is multilingual.

However, I ran into a slight problem with get_question_properties: if I decide to specify the parameter sLanguage, the result always is bad (Status: No valid data).

The code:
Code:
call_limer(method = "get_question_properties", params = list(iQuestionID = "1234", sLanguage = "en"))

Everything works fine if the language parameter is not specified — then data in default survey language is delivered. The same happens with other API functions where language can be specified: default language gets delivered, but once specified — no data. I am really puzzled what may have gone wrong.

Thanks for solution suggestions!
Last edit: 2 years 9 months ago by aleksandrsa.
The topic has been locked.
  • aleksandrsa
  • aleksandrsa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago - 2 years 9 months ago #217834 by aleksandrsa
Further experiments revealed that adding aQuestionSettings = NULL solves the problem.

call_limer(method = "get_question_properties",
                params = list(
                                 iQuestionID = "1234",
                                 aQuestionSettings = NULL,
                                 sLanguage = "en"))
Last edit: 2 years 9 months ago by aleksandrsa.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose