show lesson grade in activity report

show lesson grade in activity report

Chardelle Busch發表於
Number of replies: 6
Core developers的相片
Hi guys,

By looking at lesson/lib.php, it looks like the lesson grade should show up in the activity report-outline and complete--but it doesn't show up for me--could it be because I am using custom scoring?  What I would really like is for the lesson grade to show in the reports the same way a quiz grade does. Is there some code changes I can make to function lesson_user_outline and  lesson_user_complete to make this happen?

Thanks
評比平均分數: -
In reply to Chardelle Busch

Re: show lesson grade in activity report

Chardelle Busch發表於
Core developers的相片
Mark,

Is the lesson grade supposed to show up in the activity report for students?

Thx
In reply to Chardelle Busch

Re: show lesson grade in activity report

Mark Nielsen發表於
I have never messed around with the activity reporting features, so bear with me smile

So, I logged in as a student, and then went to user profile page->Activity Reports tab->Outline Report tab and ->Complete Report tab. Both of those final tabs had the student's grade for the lesson. The lesson was also set to use custom scoring.

In order to get this all to work, I had to turn on Show activity reports setting in the course settings.

Did I not go to the right place? It appears to be all working in moodle 1.5+ Now, it shouldn't show any reports for teachers/admins because lesson does not store anything for them in the database.

Perhaps try some more testing... take the lesson more than once, things like that. There may be a bug in there somewhere. Please post back with any findings.

Sorry I couldn't provide a more solid answer,
Mark
In reply to Mark Nielsen

Re: show lesson grade in activity report

Chardelle Busch發表於
Core developers的相片
Thanks Mark, I'm glad to know that it works. I've made some code hacks, so I will have to do some investigating to find out why I don't see a lesson grade. I'll let you know if I find anything that you should know aboutsmile.  The only thing I can think of that might be the problem is that I changed the word "grade" to "points" in my lang files, but I wouldn't think that any coding would take its functions from lang strings. 

Chardelle
In reply to Chardelle Busch

Re: show lesson grade in activity report

Chardelle Busch發表於
Core developers的相片
Okay Mark,

Well it was my lang file, I had changed my gradeis string for the end of the lesson and didn't realize it was used there too.  Anyway it's fixed now and I got the complete report formatted to look similar to the quiz report.

But, I thought I would mention in the outline report, with retakes it gives the date of the first attempt, it would be nice (make more sense?) if it gave the date of the last attempt (again, this would be more similar to the quiz report).

And another question, although off topic, do you have plans to ever make it possible for students to go back and see/review essay questions?

Thx,
Chardelle
In reply to Chardelle Busch

Re: show lesson grade in activity report

Mark Nielsen發表於
Good to hear that its all working now.

And another question, although off topic, do you have plans to ever make it possible for students to go back and see/review essay questions?

I think this is on our road map, but not sure when it will actually be implemented.  I suggest posting both of your suggestions in the bug tracker so they are not lost.

Cheers,
Mark