View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12241 | Feature requests | Import/Export | public | 2017-03-30 12:50 | 2017-03-31 00:54 |
Reporter | brammeleman | Assigned To | |||
Priority | none | Severity | @50@ | ||
Status | new | Resolution | open | ||
Summary | 12241: not possible to select all token-attributes in the export_responses_by_token api call | ||||
Description | If the last argument of export_responses_by_token ($aFields) == null, all answers are added to the report. If you would like to get token attributes as well, you would need to feed it an array with all question codes AND all token + attribute fields. Bests, Bram | ||||
Additional Information | A possible solution would be replacing: if (is_null($aFields)) $aFields=array_keys(createFieldMap($iSurveyID,'full',true,false,$sLanguageCode)); with if (is_null($aFields)) { in the function definition of export_responses_by_token (application/helpers/remotecontrol/remotecontrol_handle.php) Another solution could be an extra optional argument in the function call and roughly the same code: function export_responses($sSessionKey, $iSurveyID, $sDocumentType, $sLanguageCode=null, $sCompletionStatus='all', $sHeadingType='code', $sResponseType='short', $iFromResponseID=null, $iToResponseID=null, $qFields = null, $aFields = null) with something like: (replacing all following $aFields bij $fields) | ||||
Tags | No tags attached. | ||||
Bug heat | 0 | ||||
Story point estimate | |||||
Users affected % | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-30 12:50 | brammeleman | New Issue | |
2017-03-31 00:54 | DenisChenu | Project | Bug reports => Feature requests |