Hi, I'm new to moodle. I'm trying to use Dataform plugin to store some data records that I wish to retrieve in a plugin (NewActivity) I'm developing. I wonder how the NewActivity would refer to the Dataform under the same topic? I'm using Moodle 3.5.1 and the Dataform plugin is 3.3.2
For instance, the following may be present in the course
Topic 1
- Dataform (with a name "My Data")
- NewActivity - which will reference records created in above Dataform in topic 1
Topic 2
- Dataform (with the same name "My Data", but different data entries)
- NewActivity - which will reference records created in above Dataform in topic 2
Looking at the mdl_dataform table, I struggle to have the NewActivity refer to the entries created in the dataform activity under the same topic, as there does not seem to be a field that points to the topic.
mysql> select id, course, name from mdl_dataform;
+----+--------+------------------------+
| id | course | name |
+----+--------+------------------------+
| 4 | 14 | My Data |
| 7 | 14 | My Data |
Can someone enlighten me? Thank you.