View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06879 | Bug reports | RemoteControl | public | 2012-11-15 14:55 | 2012-11-16 10:40 |
Reporter | rbauling0818 | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 06879: export_responses function does not work | ||||
Description | When I try to use the function export_responses it does not work it gives me one of two errors either or Exception: Incorrect response id (request id: 1, response id: ) No matter what I change in the parameters it does not seem to work. I take out the Survey Id and the error goes away, but it display [status] => No Permission I have attached a sample php file | ||||
Tags | No tags attached. | ||||
Attached Files | sample.php (622 bytes)
<?php require_once 'jsonRPCClient.php'; define( 'LS_BASEURL', 'limesurveyurl'); define( 'LS_USER', 'admin' ); define( 'LS_PASSWORD','password' ) $survey_id=96293; $sSurveyLanguage = 'en'; $status = 'all'; $heading = 'code'; $responseType = 'short'; $doc_type= 'csv'; $myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/admin/remotecontrol' ); $sSessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD ); $export_responses = $myJSONRPCClient->export_responses($sSessionKey, $survey_id, $doc_type, $sSurveyLanguage, $status, $heading, $responseType); print_r($export_responses); ?> | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 121115 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MySQL 5.1.61 | ||||
Server OS (if known) | Red Hat Enterprise Linux Server release 6.3 | ||||
Webserver software & version (if known) | Apache/2.2.15 | ||||
PHP Version | 5.3.0 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-11-15 14:55 | rbauling0818 | New Issue | |
2012-11-15 14:55 | rbauling0818 | File Added: sample.php | |
2012-11-15 15:11 | c_schmitz | Assigned To | => c_schmitz |
2012-11-15 15:11 | c_schmitz | Status | new => assigned |
2012-11-15 15:39 | c_schmitz | Status | assigned => resolved |
2012-11-15 15:39 | c_schmitz | Fixed in Version | => 2.00+ |
2012-11-15 15:39 | c_schmitz | Resolution | open => fixed |
2012-11-15 15:40 | c_schmitz | Changeset attached | => LimeSurvey master ed6a0f8e |
2012-11-16 10:40 | c_schmitz | Note Added: 22251 | |
2012-11-16 10:40 | c_schmitz | Status | resolved => closed |