View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08613Bug reportsRemoteControlpublic2014-02-03 16:02
Reporterrodparis Assigned Toc_schmitz  
PrioritynormalSeveritycrash 
Status closedResolutionno change required 
Product Version2.05+ 
Summary08613: RemoteControl 2 API : Export_Responses KO
Description

Export_Responses doens't display responses stored in DB for the survey.
Only fields "id","submitdate","lastpage","startlanguage","startdate","datestamp","ipaddr" are displayed !

Steps To Reproduce

PHP CODE in order to request export_responses :

require_once 'includes/jsonRPCClient.php';
define( 'LS_BASEURL', 'LimesurveyURL'); // LimeSurveyURL as to be replace by server url
define( 'LS_USER', 'user' );
define( 'LS_PASSWORD', 'password' );
$survey_id=123456;
$myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/admin/remotecontrol' );
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
// Export des réponses
$DocumentType='csv';
$CompletionStatus='all';
$HeadingType='full';
$ResponseType='long';
$print = $myJSONRPCClient->export_responses($sessionKey, $survey_id, $DocumentType, $CompletionStatus ,$HeadingType, $ResponseType);
print_r( base64_decode($print), null);
$myJSONRPCClient->release_session_key( $sessionKey );

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)140116
I will donate to the project if issue is resolvedYes
BrowserFirefox
Database type & versionMYSQL
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP VersionPHP 5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-02-03 16:02

administrator   ~28449

Your script has a bug - the language parameter is missing. Correctly it should be

$print = $myJSONRPCClient->export_responses($sessionKey, $survey_id, $DocumentType, null ,$CompletionStatus ,$HeadingType, $ResponseType);

Issue History

Date Modified Username Field Change
2014-01-28 00:53 rodparis New Issue
2014-02-03 14:54 c_schmitz Assigned To => c_schmitz
2014-02-03 14:54 c_schmitz Status new => assigned
2014-02-03 16:02 c_schmitz Note Added: 28449
2014-02-03 16:02 c_schmitz Status assigned => closed
2014-02-03 16:02 c_schmitz Resolution open => no change required