download Course participation report

download Course participation report

by Shufeng Bai -
Number of replies: 9

In Moodle, I can see the participation report and find out which student didn't complete a specific activity. There is also a "select No" button helping me select all those who need special attention. However, the only option I do after that is sending a message to those selected.  It would be great if I can download / export those student so I can do further processing.

I found an earlier post about the same question but there was no response https://moodle.org/mod/forum/discuss.php?d=220983

Average of ratings: -
In reply to Shufeng Bai

Re: download Course participation report

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Some discussion that took place in https://moodle.org/mod/forum/discuss.php?d=433052#p1742501 might help.
In reply to Rick Jerz

Re: download Course participation report

by Shufeng Bai -
RIck,
Thank you for pointing me to the Ad-hoc database queries. It is very powerfully. But it seems that I have to do the query in the browser manually. Are you aware is there any way I can use web API to query the remote moodle server directly?
I was able to query enrolled users, grades, etc using API documented in https://docs.moodle.org/dev/Web_service_API_functions. But I can not get participation reports or system log. It would be great if I can do so so I can automate lots of work.

Hopefully, somebody can create a plugin for that.
In reply to Shufeng Bai

Re: download Course participation report

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
I am not an expert in all the ways to connect to a database. If you have ssh access to your server, one can run MySQL queries from a command line. I tend to prefer utilities like phpMyAdmin, but power database folks would probably say the command line is more powerful (and I agree). Once I get my query working, I then use the "Configurable Reports" plugins to help me organize and manage my queries. This seems to work well. However, I am the instructor, the Moodle admin, the server admin, and database admin rolled into one person, so I have complete rights (to do damage, too).
In reply to Shufeng Bai

Re: download Course participation report

by Randy Thornton -
You can use the various completion api to get activity completion status: for example:

core_completion core_completion_get_activities_completion_status 2.9 Return the activities completion status for a user in a course. No Yes moodle_mobile_app
core_completion core_completion_get_course_completion_status 2.9 Returns course completion status. No Yes moodle_mobile_app
core_completion core_completion_override_activity_completion_status 3.4 Update completion status for a user in an activity by overriding it. Yes Yes


There are no APIs yet that I know of that directly access the logs, however. Perhaps someone else knows the details of that. In any case, to get just activity completion, you don't need the logs at all, that data is stored in the course modules completion table.
Average of ratings:Useful (2)
In reply to Randy Thornton

Re: download Course participation report

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Great tip about mdl_course_modules_completion table. I will have to explore this table. I see that it keeps track of "coursemoduleid." Do you know what happens if a quiz, for example, allows multiple attempts? Are the multiple attempts kept in this table, Randy?

In my school's implementation of the Canvas LMS, which is managed by Canvas, the only access to data in the database is through APIs. I wonder this is what Shufang is thinking about?
In reply to Rick Jerz

Re: download Course participation report

by Randy Thornton -
Rick,

This table only holds the completion end results: it basically has course module id, the user, and whether they have completed the module or not, some manual override info. It is directly analogous the course course_completions table for course completions. I have a query that shows just how it works: https://docs.moodle.org/311/en/ad-hoc_contributed_reports#User_activity_completions_with_dates
Average of ratings:Useful (1)
In reply to Randy Thornton

Re: download Course participation report

by Shufeng Bai -
Thanks for the tip. For completion to work, I have to turn on the completion setting from the beginning. If I turn on them now, the early access is not counted I think. I will consider using that in the next course.