- Posts: 2
- Thank you received: 0
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
- kees
- Topic Author
- Offline
- New Member
Less
More
8 years 6 months ago #126596
by kees
How to fetch additional question properties by JSON Remotecontrol API was created 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
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.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
8 years 6 months ago #126633
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to fetch additional question properties by JSON Remotecontrol API
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.
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: kees
The topic has been locked.
- kees
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
8 years 6 months ago #126657
by kees
Replied by kees on topic How to fetch additional question properties by JSON Remotecontrol API
Hi Denis,
It works!!! Retrieving all additional attributes in a subset.
THNX,
Kees
It works!!! Retrieving all additional attributes in a subset.
THNX,
Kees
The topic has been locked.
- limeAJ
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
6 years 7 months ago #158188
by limeAJ
Can you sanitize and post the get_survey_properties you used?
Replied by limeAJ on topic How to fetch additional question properties by JSON Remotecontrol API
May I ask how did you get it working?kees wrote: It works!!! Retrieving all additional attributes in a subset.
Can you sanitize and post the get_survey_properties you used?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 7 months ago #158212
by DenisChenu
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 service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to fetch additional question properties by JSON Remotecontrol API
kees asking for QUESTION, not survey : github.com/LimeSurvey/LimeSurvey/blob/f6...rol_handle.php#L1422 : use null for question.limeAJ wrote:
May I ask how did you get it working?kees wrote: It works!!! Retrieving all additional attributes in a subset.
Can you sanitize and post the get_survey_properties you used?
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: limeAJ
The topic has been locked.
- limeAJ
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
6 years 7 months ago #158222
by limeAJ
Replied by limeAJ on topic How to fetch additional question properties by JSON Remotecontrol API
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!
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.