View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09030Feature requestsRemoteControlpublic2015-01-15 12:52
Reporterravi4957 Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary09030: Include candidates complete and incomplete response counts in get_participant_properties remote control call
Description

I would suggest there must be information returned in the remote control call "get_participant_properties" about the count of completed and incomplete responses for a survey by participants

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

Renier

Activities

ravi4957

ravi4957

2014-05-12 16:34

reporter   ~29969

We can achieve this by adding below code before the actual result is returned

if (tableExists('{{survey_' . $iSurveyID . '}}')){
$participantToken = $result['token'];
$result['completed_responses'] = SurveyDynamic::model($iSurveyID)->countByAttributes(array('token' => $participantToken), 'submitdate IS NOT NULL');
$result['incomplete_responses'] = SurveyDynamic::model($iSurveyID)->countByAttributes(array('token' => $participantToken), 'submitdate IS NULL');
}

ravi4957

ravi4957

2015-01-15 12:52

reporter   ~31466

@c_schmitz

Can you please help to add your views on this issue please.
I need the details of the responses counts for the specific candidate,

I can think of two options to achieve this feature,

First option
1) Add two extra tokens in the aTokenProperties parameter at input for get_participant_properties routine, for completed_count & incompleted_count, and check for this parameters availability in the routine to append the data in the returned result.

Second option
2) Add an extra parameter to the routine, like aStatsName, (which provide statistics names which are needed in result) and append them with the results for that specific candidate.

Can you please let me know your thoughts on above two suggestions for achieving the functionality returning statistics of the specific candidate so i can try to submit the code on your recommendations.

Thanks

Issue History

Date Modified Username Field Change
2014-05-12 14:51 ravi4957 New Issue
2014-05-12 16:34 ravi4957 Note Added: 29969
2014-12-04 20:43 Renier Issue Monitored: Renier
2015-01-15 12:52 ravi4957 Note Added: 31466