Welcome to the LimeSurvey Community Forum

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

How to fetch additional question properties by JSON Remotecontrol API

More
10 years 10 months ago #126596 by kees
I'm trying to find out how to fetch certain question attributes by using the JSON Remotecontrol API. I know I can use get_question_properties() and fill up the aQuestionSettings with propertynames as used for the columns in the database table (lime_)questions, like 'title', 'mandatory' , ' relevance' , etc.

But I can't find out how to fetch the additional atrributes (by Remotecontrol API) stored in the table (lime_)question_attributes, like 'use dropdown', 'hidden', etc.

Can anyone help me out??

TIA,

Kees
The topic has been locked.
More
10 years 10 months ago #126633 by DenisChenu
Hi,

Looking at code : github.com/LimeSurvey/LimeSurvey/blob/ma...rol_handle.php#L1378

Seems to return the attribute set, remind if attribute is 'default' : it's not set.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: kees
The topic has been locked.
More
10 years 10 months ago #126657 by kees
Hi Denis,

It works!!! Retrieving all additional attributes in a subset.

THNX,

Kees
The topic has been locked.
More
8 years 11 months ago #158188 by limeAJ

kees wrote: It works!!! Retrieving all additional attributes in a subset.

May I ask how did you get it working?
Can you sanitize and post the get_survey_properties you used?
The topic has been locked.
More
8 years 11 months ago #158212 by DenisChenu

limeAJ wrote:

kees wrote: It works!!! Retrieving all additional attributes in a subset.

May I ask how did you get it working?
Can you sanitize and post the get_survey_properties you used?

kees asking for QUESTION, not survey : github.com/LimeSurvey/LimeSurvey/blob/f6...rol_handle.php#L1422 : use null for question.

For survey : github.com/LimeSurvey/LimeSurvey/blob/f6...trol_handle.php#L257 get_survey_properties($sSessionKey,$iSurveyID) : get all attributes (since 2.65.2+170606 : github.com/LimeSurvey/LimeSurvey/commit/...17b471fdbc1a84b8ce26 )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: limeAJ
The topic has been locked.
More
8 years 11 months ago #158222 by limeAJ
Yeah, that was an oops that I noticed after I posted.
Kees was asking for questions, and I was looking for survey.

I got it working after upgrading to the latest LimeSurvey version.

Thank you!
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose