Project

General

Profile

Actions

Bug #4435

open

The "Assign" button is de-activated if both response and score are seleceted when the student response data in PDF file is imported

Added by Jay Lee about 15 years ago. Updated about 15 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
dataimport
Target version:
Start date:
10/05/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4435

Description

When both score and response are selected when student data in PDF file, the "Assign" button is de-activated.

after importing the student data in Excel format, I tried to import the student response data in PDF files that have all qeustion for each student . then i choose the PDF files, then choose the both option, scores and response. then choose the option "one file for each stduent. then the "assign" button on the next screen is de-actiavted. so you can't assign the PDF file to each student. if i just select one option either scores or response, there is no problem to assign PDF file to each student.

The same thing happens when i choose the second option "one file for each question".

There is no problem when i selected the third option "None of Above" which could import the one PDF file that has all items and students as well.

It happens to

Actions #1

Updated by Jay Lee about 15 years ago

the Data package that used to test for this are Use Case Test3-1, Use Case Test 3-2, and Use Case Test 3-3

Use Case Test 3-1 is used to test the option 1, one file for each student
Use Case Tset 3-2 is used to test the option 2, one file for each question
Use Case Test 3-3 is used to test the option 3, None of Above

Actions #2

Updated by Sandeep Namilikonda about 15 years ago

Relevant code snippet from AssignExternalFiles.java:

protected void updateAssignButtonStatus () {
boolean fileAndStudentSelected =
cbxFilenamesMatchStudentIdentifiers.isSelected() ||
(lstExternalFiles.getSelectedIndex() >= 0 &&
lstStudentIdentifiers.getSelectedIndices().length > 0);
boolean questionSelected =
lstQuestionIdentifiers.getSelectedValues().length > 0;
boolean dataTypeSelected =
lstDataTypes.getSelectedIndices().length > 0;
boolean enable = fileAndStudentSelected && questionSelected &&
dataTypeSelected;
btnAssign.setEnabled(enable);
}

So, unless typeOfData, question, and the student fields are all in sync (i.e.,
properly matching), the button will remain disabled. I think, this seems to be consistent with the interface too, at least, for a trial I did.

Jay, in your trials, did you ensure that there was no mismatch in terms of the
number of students, questions, and corresponding data present in your PDF file?

Ryan, is my assessment of the problem correct or do you think that there is
something wrong programatically?

Actions #3

Updated by Jay Lee about 15 years ago

Sandeep, yes. I matched the number of stuents and items. For example, Use test case 3-1, there is 8 items and 20 students in the student data set. and I created 20 PDF files for each student for option 1 which is one file for each student.

Actions #4

Updated by Sandeep Namilikonda about 15 years ago

On further examination, I noticed that the variable "dataTypeSelected" in the code snippet from comment #2 is wrongly set to FALSE when more than one "types of information" is chosen in the GUI window whose pageTitle is:
"Specify types of data to that are contained in files to be archived".

The available types (Scores, Responses, and Feedback) are shown as check boxes.

Now, dataTypeSelected is set to TRUE if the list lstDataTypes has any of its
elements set (which is same as: lstDataTypes.getSelectedIndices().length > 0 in the code).

Looks like AbstractDataTypesToImport.java and ChooseExternalTypesOfDataToImport.java have some relevant code. But, I could not conclusively determine what is causing the bug.

Could it be the "setSelected" routines associated with each of check boxes?

Actions #5

Updated by Ryan McFall about 15 years ago

This was fixed by selecting all data types in the (invisible) data type selection box when "one file per student" or "one file per question" is the selected option.

Actions #6

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4435

Actions

Also available in: Atom PDF