Picture of K Edison
Compare Assessment Results
by K Edison - Tuesday, 1 August 2023, 7:30 PM
 

I have 2 assessments in my course, one is a pre-test and one a post-test. I would like to compare the results of each in one component at the end. I would like to also be able to show the percentage of improvement from the pre-test to the post-test.

Thanks

Picture of Oliver Foster
Re: Compare Assessment Results
by Oliver Foster - Wednesday, 2 August 2023, 9:38 AM
 

Hi K Edison.

You'll need some custom code to do this. Do you know how to write javascript or have someone who knows how to?

The assessment states can be accessed using:

import Adapt from 'core/js/adapt';
Adapt.assessment.get().map(model => model.getState());

 

 

Or you can look them up individually by their id:


import Adapt from 'core/js/adapt';
Adapt.assessment.get('a-15').getState();

 

You'll probably need to write or have someone write a new component to do this for you. Similar to the standard adapt-contrib-assessmentResults

I hope that helps.

Ollie.

Picture of K Edison
Re: Compare Assessment Results
by K Edison - Thursday, 3 August 2023, 11:49 AM
 

Thanks