Picture of Ben Simons
Re: Randomized question banks
by Ben Simons - Wednesday, 13 January 2016, 12:02 PM
 

Hi Oliver,

This is what my Blocks look like:

{
"_id": "b-95",
"_parentId": "a-20",
"_type": "block",
"_classes": "",
"title": "b-95",
"displayTitle": "",
"body": "",
"_trackingId": 17,
"_assessment": {
"_quizBankID": 1
}
},
{
"_id": "b-100",
"_parentId": "a-20",
"_type": "block",
"_classes": "",
"title": "b-100",
"displayTitle": "",
"body": "",
"_trackingId": 18,
"_assessment": {
"_quizBankID": 2
}
},
{
"_id": "b-105",
"_parentId": "a-20",
"_type": "block",
"_classes": "",
"title": "b-105",
"displayTitle": "",
"body": "",
"_trackingId": 19,
"_assessment": {
"_quizBankID": 3
}
},
{
"_id": "b-106",
"_parentId": "a-20",
"_type": "block",
"_classes": "",
"title": "b-105",
"displayTitle": "",
"body": "",
"_trackingId": 35,
"_assessment": {
"_quizBankID": 4
}
},
{
"_id": "b-107",
"_parentId": "a-20",
"_type": "block",
"_classes": "",
"title": "b-105",
"displayTitle": "",
"body": "",
"_trackingId": 36,
"_assessment": {
"_quizBankID": 5
}

 

And this is my Article: 

{
"_id": "a-20",
"_parentId": "co-20",
"_type": "article",
"_classes": "",
"title": "a-20",
"displayTitle": "",
"body": "",
"_assessment": {
"_isEnabled":true,
"_id": "Assessment 1",
"_banks": {
"_isEnabled": true,
"_split": "2,1,1,1,1",
"_randomisation": true
},
"_randomisation": {
"_isEnabled": false,
"_blockCount": 1
},
"_questions": {
"_resetType": "hard",
"_canShowFeedback": false,
"_canShowMarking": true,
"_canShowModelAnswer": false
},
"_isPercentageBased" : true,
"_scoreToPass" : 80,
"_includeInTotalScore": true,
"_assessmentWeight": 1,
"_isResetOnRevisit": false,
"_attempts": 5
}

 

but in the console log i'm getting this message: Cannot Read property '_quizBankID' of undefined.

Why?????