[Closed] Show Parent's Info on Children Report
- Paolo
- Topic Author
- Offline
- Junior Member
-
Less
More
13 years 3 weeks ago - 13 years 2 weeks ago #1
by Paolo
[Closed] Show Parent's Info on Children Report was created by Paolo
Hello everybody,
I need to show Parent's Info (Company name) on Children's (employee's) report.
I can't find parent's connections in moodle database, (as params in joomla user table) so I don't know how to pick that info.
Any advice?
Thanks,
Paolo
I need to show Parent's Info (Company name) on Children's (employee's) report.
I can't find parent's connections in moodle database, (as params in joomla user table) so I don't know how to pick that info.
Any advice?
Thanks,
Paolo
Last edit: 13 years 2 weeks ago by Chris.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
13 years 3 weeks ago #2
by Antonio Durán
Replied by Antonio Durán on topic Show Parent's Info on Children Report
Connection between parents and children are in 2 places:
- Moodle roles
- Joomla users, inside params field
- Moodle roles
- Joomla users, inside params field
Please Log in or Create an account to join the conversation.
- Paolo
- Topic Author
- Offline
- Junior Member
-
13 years 2 weeks ago #3
by Paolo
Replied by Paolo on topic Show Parent's Info on Children Report
Hi Antonio,
thank you for helping me, I checked moodle role_assignments table in database but I can only see if X is a parent or a student, but not if X is parent of Y or Z, which is what I really need.
thank you for helping me, I checked moodle role_assignments table in database but I can only see if X is a parent or a student, but not if X is parent of Y or Z, which is what I really need.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
13 years 2 weeks ago #4
by Antonio Durán
Replied by Antonio Durán on topic Show Parent's Info on Children Report
Moodle relationships are quite complicated. You will need to also work with the context table.
You can check the the get_parents function to have an idea.
You can check the the get_parents function to have an idea.
Please Log in or Create an account to join the conversation.
- Paolo
- Topic Author
- Offline
- Junior Member
-
13 years 2 weeks ago #5
by Paolo
Replied by Paolo on topic Show Parent's Info on Children Report
Hi Antonio,
thank you for the advice, I actually just needed to use the get_parents function, I just changed the query to get a field from user_info_data instead of the username.
Thank you again!
thank you for the advice, I actually just needed to use the get_parents function, I just changed the query to get a field from user_info_data instead of the username.
Thank you again!
Please Log in or Create an account to join the conversation.