Quantcast
Channel: Configurable reports block (plugin)
Viewing all 2785 articles
Browse latest View live

Pulling SCORM info from Track Details

$
0
0
by Siôn Rodriguez y Gibson.  

Hi all,

I hope someone can help me out.

Our course uses a SCORM object and reports to Moodle via cmi-interactions. All of these details show up when you drill down to a user and click Track Details, which is awesome.

However I'm trying to see if the configurable reports block can pull out and aggregate these SCORM interactions into a table showing all of them for all the users.

Any ideas how to do this? DO I need to go down into custom SQL to do so?

Thanks for any help!

Cheers,

Sion 


Configurable Reports - Pie Graph

$
0
0
by Lavanya Manne.  

Hi Juan Leyva,

I had created an SQL Report where selecting a course shows a list of user-course grades. In view report, the default pie graph shows the correct graph as per the table records., but when I use filter by selecting a course, the graph shows incorrect.

As stated in the screenshot 1, this is the default view report. In the screenshot 2, I had selected a course ' Roles and Responsibilities', there was only one user and the graph shows 100%.

Can you suggest me. Many Thanks.





Re: Pulling SCORM info from Track Details

$
0
0
by Sam Stevens.  

SELECT *

FROM prefix_scorm_scoes_track 


Will get you all the data in the scorm tracking. Can be a bit tricky to look at though as some of the values are quite long.

You will need to add in some Where and joins to make it more meaingfull and get user data rather than just user number, scoid etc...

Need help with scheduling report to email

$
0
0
by charles okaformbah.  

Need help on schedule, the query works fine but I don't seem to understand why it does not do query scheduled to my email. Don't know if I am doing something wrong or is there a cronjob I need to setup. Here is an imageprint of my setting http://prntscr.com/86cj20

Re: Need help with scheduling report to email

$
0
0
by charles okaformbah.  

I am new to moodle and I am using the ad-hoc database query plugin

Re: Pull custom profile fields in report

$
0
0
by James Todd.  

Hi Alan

Here's a report I've created.

The profile field table is prefix_user_data

one field is directorate and the other is department.

I've used uid.data as Dir and uid2.data as Dept

you can see from the joins there are the same.

JOIN prefix_user_info_data AS uid ON uid.userid = u.id
JOIN prefix_user_info_data AS uid2 ON uid2.userid = u.id


But I call the info from the table in the filter using the different ids

"WHERE uid.fieldid = '13'  (is the directorate id)
AND uid2.fieldid = '1'"  (is the department id)"

the filters are custom filters.

this reports on name, where they work, quiz results and dates, if anyone want to use it.


Hope this helps.

Thanks Jimi


SELECT u.firstname AS firstname, u.lastname AS lastname, uid.data AS Directorate, uid2.data AS Department, q.name AS Quiz,
ROUND(qg.grade,0) AS Grade, DATE_FORMAT(FROM_UNIXTIME(qg.timemodified),'%d-%m-%y') AS date

FROM prefix_user AS u
JOIN prefix_user_info_data AS uid ON uid.userid = u.id
JOIN prefix_user_info_data AS uid2 ON uid2.userid = u.id
JOIN prefix_user_info_field AS uif ON uid.fieldid = uif.id
JOIN prefix_quiz_grades AS qg ON u.id = qg.userid
JOIN prefix_quiz AS q ON qg.quiz = q.id

WHERE uid.fieldid = '13'
AND uid2.fieldid = '1'
%%FILTER_FIRSTNAME:u.firstname:~%%
%%FILTER_SURNAME:u.lastname:~%%
%%FILTER_DIRNAME:uid.data:~%%
%%FILTER_DEPTNAME:uid2.data:~%%
%%FILTER_COURSENAME:q.name:~%%
ORDER BY u.lastname, qg.timemodified

Help with one report: how to add user pictures and change date format

$
0
0
by Federica Marra.  

Hello Juan and everyone,

I am trying to add the user pictures in a sql report I created to get an overiview of all the users who earned one specif badge.

SELECT
    -- User.
    u.firstname, u.lastname, u.city, u.email, u.picture, u.id, d.dateissued, d.dateexpire
FROM
    prefix_badge_issued AS d
JOIN
    prefix_badge AS b ON d.badgeid = b.id
JOIN
    prefix_user AS u ON d.userid = u.id

WHERE b.id = 3


I enabled the template and followed your code found in plugin's doc.

<table width="100%">
<tbody><tr>
<td><img src="http://yourmoodle.com/user/pix.php/id]]/f1.jpg"></td>
<td><h2>[[firstname
lastname</h2>
City: city
</td>
<td>Issued: dateissued</td>
</tr>
</tbody></table>
<br>


The report works but I cannot get the users' pictures and badge's issuing and expiration date.



Can you help me?

Thanks in advance

List of Courses and Associated Teachers

$
0
0
by Michael Grainger.  

Hi can anyone help with the SQL to export a list of all courses along with all teachers associated with those courses please?

I can use configurable reports or ad-hoc queries just don't have the skills required to put this together from scratch.

At the start of next term I would like use this data to produce some lists so that heads of department will be able to see at a glance which teachers need to be added or removed from courses to reflect changes in staffing. I will be using the data to produce a mail merge document with a page per course showing the enrolled teachers. Each page will then become a tick list/comments page so that I can then make sure all courses have been covered before the start of term. Seems a bit old fashioned to do it on paper but it works well and gets the info I need efficiently.


Thanks


Graphs not showing

$
0
0
by Agito Makashima.  

The report works fine but when adding a graph onto my moodle that is on the hosting server [Centos], it doesn't show the image for moodle 2.7.

What are the php requirements for the graphs to display properly. It seems to work fine locally

Re: Add submission status to individual grade report

$
0
0
by Martin Vojtela.  

Hi Emma, 

although I am not able to help you, I wanted to say that this code came in very handy! Many thanks and I hope somebody will help out soon!

Martin

Re: Add submission status to individual grade report

$
0
0
by Emma Richardson.  

Glad you were able to benefit from it. 

Emma

Re: Help with one report: how to add user pictures and change date format

$
0
0
by Matteo Scaramuccia.  

Hi Federica,
first of all you should take care of ..., your template should look like:

<table width="100%">
<tbody>
<tr>
<td><img src="http://yourmoodle.com/user/pix.php/UserId/f1.jpg" alt="Email" /></td>
<td><h2>FirstNameLastName</h2>City: City</td>
<td>Issued: DateIssued</td>
<td>Expire: DateExpire</td>
</tr>
</tbody>
</table>
<br />

and your SQL query should look like:

SELECT
-- User.
u.firstname 'FirstName', u.lastname 'LastName'
, u.city 'City', u.email 'Email', u.picture, u.id 'UserId'
-- Badge.
, FROM_UNIXTIME(bi.dateissued) 'DateIssued', FROM_UNIXTIME(bi.dateexpire) 'DateExpire'
FROM
prefix_badge_issued AS bi
JOIN
prefix_badge AS b ON bi.badgeid = b.id
JOIN
prefix_user AS u ON bi.userid = u.id

Blindly written, I didn't have the chance to test it.

Note: the dates are converted according to the timezone of the SQL connection (MySQL).

@Helen: I'm not able to escape the square brackets in order to not let the Moodle Wiki filter to be activated. Text above in doubled square brackets are auto-linked to the Moodle Wiki.

HTH,
Matteo

Re: Help with one report: how to add user pictures and change date format

$
0
0
by Federica Marra.  

Hi Matteo,

Thanks very much for your help!

I managed to change the date format in the sql and get the format I wanted with:

   -- User.
    u.firstname, u.lastname, u.city, u.email, u.picture, u.id, d.dateexpire,
    DATE_FORMAT(FROM_UNIXTIME(d.dateissued),'%y-%m-%d') AS date

But the template and the user pics are still not working properly.

I tried with your code and changing it a bit as well:

 


The problem with the grey icon is that it appear in the report as well and it is not linked with the real user pics.

I found other discussions in moodle about the user pics. Could you please take a look?

https://moodle.org/mod/forum/discuss.php?d=201445

https://moodle.org/mod/forum/discuss.php?d=319037


Thanks again!

Re: Help with one report: how to add user pictures and change date format

$
0
0
by Federica Marra.  

Hi again Matteo!

Actually the  is working! But there are some problems with the pics visualization of the url if I do not add http:"www.mymoodle.bla

to the <img src>

Re: List of Courses and Associated Teachers

$
0
0
by Diana Cuellar.  

Hello... I need the same report for moodle 2.7

Any idea?


Re: Calling a custom profile field in SQL report

$
0
0
by Diego Bronstein.  

This code works, but if one of the fields has no data, the record does not show at all.


It requires all fields to have data in them. How can one make SQL show all records even with empty values?

Help building a "Course Outline" report

$
0
0
by Adele Shemberger.  

I’m hoping there is someone who would be willing to help out with creating a report for our courses.
Our teachers are regularly updating their courses and we would like to keep track of changes they make. We have created what is called a course outline.
After the beginning of each semester, once the courses are live we have someone go into each course and document all of the updates. (currently we have 275 courses) This process is tedious and is being done manually.
I am a novice with MySQL.  I'm convinced that most of this data can be gathered using configurable reports or ad-hocs, of which we have access to.
I’m really hoping there is someone out there who might be willing to help me in writing this report so that we can run it regularly in each of our courses.
Here is a list of some of the data we must gather for each course:

Number of Units
Total Course Points
Number of activities
Number of quizzes
Number of assignments
Number of forums
Total quiz points
Total assignment and forum points

Any help on this would be greatly appreciated. I am trying to learn MySQL, I just have not been able to dedicate the time needed.

Re: Calling a custom profile field in SQL report

$
0
0
by Melanie Scott.  

Yowza!  A sql report on scorm data!  I can't tell you how but I can tell you it will NOT be pretty, even if you succeed.  And it might not be useful.  Scorm data (variable data, which included question answers) is all lumped in a comma separated field.  One (very small) example looks like this:

;~;VarQuestion_0006=True;VarQuestion_0005=False;VarQuestion_0004=True;VarQuestion_0003=True;VarQuestion_0002=Yes;VarQuestion_0001=My%20personal%20life%20is%20none%20of%20your%20business.%20;

This one doesn't actually have a test, just questions throughout.  If there was a test, there would be more variables.  It doesn't tell you which question is which (unless you've named the variable for the question and keep all that garbage in your head), what the other options were or what the right answer is.  I once created a crystal report (which include all sorts of stuff for formatting and prettifying) to pull Scorm data and added a bunch of crazy stuff to break up the variables in a per-line format, named the variables, etc and added formatting to replace the %20 with a space and it was still monumentally ugly.

Now, after being dreadfully discouraging, I'll ask.  What specifically are you looking to get out of scorm data?  Or do you just want a grade (that's possible and probably easy).

SQL report for users and simple certificates issued

$
0
0
by Al Brocklehurst.  

Hi All

I'm trying to combine two SQL reports that work separately, together as one but so far no luck. 

First report lists users in the current course, some custom fields and the course completion date.

SELECT u.firstname AS 'First Name', u.lastname AS 'Last name', u.email AS email, DATE_FORMAT(FROM_UNIXTIME(uid.data), '%d-%m-%Y') AS dob, uid2.data AS 'LEA Site', c.shortname AS Unit, DATE_FORMAT(FROM_UNIXTIME(p.timecompleted),'%d-%m-%Y') AS completed

FROM prefix_course_completions AS p
JOIN prefix_course AS c ON p.course = c.id
JOIN prefix_user AS u ON p.userid = u.id
JOIN prefix_user_info_data AS uid ON uid.userid = u.id
JOIN prefix_user_info_field AS uif ON uid.fieldid = uif.id
JOIN prefix_user_info_data AS uid2 ON uid2.userid = u.id
JOIN prefix_user_info_field AS uif2 ON uid2.fieldid = uif2.id

WHERE c.id=170 and uif.shortname = 'DOB' and uif2.shortname = 'School'
ORDER BY u.lastname


The second taken from an earlier post lists username and simple certificate issued date (timecreated)


SELECT u.username as 'User Name', DATE_FORMAT(FROM_UNIXTIME(ci.timecreated),'%d-%m-%Y') AS 'Certificate Date'
FROM prefix_user AS u
    JOIN prefix_simplecertificate_issues AS ci ON u.id = ci.userid
    JOIN prefix_simplecertificate AS c ON ci.certificateid = c.id
  ORDER BY 'Certificate Date'


Essentially I'd like to replace the Course Completion date in the first report with the certificate issued date but can't seem to merge the user id correctly from the 2nd report into the 1st.

As a non-programmer any ideas would be much appreciated.

Re: SQL report for users and simple certificates issued

$
0
0
by Rick Dennis.  

Try this................

I did not test this but it is close.

I just added the field in the select statement on the end and added the join to end of the join section


SELECT u.firstname AS 'First Name', u.lastname AS 'Last name', u.email AS email, DATE_FORMAT(FROM_UNIXTIME(uid.data), '%d-%m-%Y') AS dob, uid2.data AS 'LEA Site', c.shortname AS Unit, DATE_FORMAT(FROM_UNIXTIME(p.timecompleted),'%d-%m-%Y') AS completed, DATE_FORMAT(FROM_UNIXTIME(ci.timecreated),'%d-%m-%Y') AS 'Certificate Date'

FROM prefix_course_completions AS p
JOIN prefix_course AS c ON p.course = c.id
JOIN prefix_user AS u ON p.userid = u.id
JOIN prefix_user_info_data AS uid ON uid.userid = u.id
JOIN prefix_user_info_field AS uif ON uid.fieldid = uif.id
JOIN prefix_user_info_data AS uid2 ON uid2.userid = u.id
JOIN prefix_user_info_field AS uif2 ON uid2.fieldid = uif2.id
JOIN prefix_simplecertificate_issues AS ci ON u.id = ci.userid


WHERE c.id=170 and uif.shortname = 'DOB' and uif2.shortname = 'School'
ORDER BY u.lastname

Viewing all 2785 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>