The Elearning Community • Custom field in report
Page 1 of 1

Custom field in report

Posted: Tue Aug 27, 2019 12:45 pm
by kodokbakar
I need a report about a test, but with the custom field - organization node active. So this field is there in the report - users - course report, can I call it for a report generated from report-users-learning object?

Re: Custom field in report

Posted: Tue Oct 15, 2019 3:18 pm
by max
Hi Yoshua,

sorry for replying so late to this thread. Can you please explain better? I don't understand your question, to be honest.

Re: Custom field in report

Posted: Mon Oct 21, 2019 5:57 am
by kodokbakar
So I need a report on a course, with the following headers (and 1 sample data):

Username | Firstname | Lastname | Test Score | Node (or department) | Status
username1 | User | User | 100 | Main Branch | Passed

Currently I am unable to produce that format in Forma, since the node field is not available in test report.
Is this correct, and is there any workaround? I tried to tweak the report module but I am not sure which function will generate the node name field.

Re: Custom field in report

Posted: Mon Oct 21, 2019 7:24 am
by max
Hi,
it seems to me that custom node fields are actually available during report creation, it should be after users custom field and before "display courses information". The section is "custom org".

Re: Custom field in report

Posted: Mon Oct 21, 2019 7:38 am
by kodokbakar
Yes, I am aware of that, but this is only for course report, and not learning object report. Is there anyway I can include the custom org in the learning object report?

Re: Custom field in report

Posted: Mon Oct 21, 2019 8:04 am
by max
Ok, I see now.
No, if you didn't find that field in that kind of report it's not there.
I will try to have that improved in the future versions

Re: Custom field in report

Posted: Mon Oct 21, 2019 9:00 am
by alfa24
It's not difficult to add. You should edit /appLms/admin/modules/report/class.report_user.php
You'll find some orgchart references in commented code.
Uncomment them and go further with debug adding the code from courseuser filter.
It needs some programming skills and FormaLms knowledge.

Re: Custom field in report

Posted: Tue Oct 22, 2019 6:19 am
by kodokbakar
Oh, I see...its in the class.report_user.php. I tried changing report.php but I cannot track the function that leads there. Thanks alfa & max

Re: Custom field in report

Posted: Thu Oct 24, 2019 1:03 pm
by murat
Hello, I have developed a plugin with these features. Please contact me if you need it.

This site uses cookies.

Some of the cookies we use are essential for parts of the site to operate and have already been set. We also use Google Analytics scripts, which all use cookies.
You may delete or block all cookies from this site in your browser options.