One to many overview

0
Hi   During the learning courses, we learnt how to populate pages with many to one relationship When creating a Training event, we can select a teacher from the drop down How do i polupate the screen, where the page parameter is the teacher, and i get all the coresponding training events?  similarly, how do i retrieve the data in a microflow   Thankn you
asked
3 answers
1

Add a dataview on the page having as datasource the Teacher. (sidenote: keep entitynames singular, so Teacher, without ‘s’)

in that dataview add a datagrid having as datasource the TrainingEvents over association to the Teacher.

answered
0

Thank you

 

How can i now add an existing Training event for that teacher from the same screen

answered
0

you need to add some logic here..

You have to display a listview/datagrid of the TrainingEvents (that are not already affected to the Teacher)

and add a button 'Affect to this teacher'

and in the microflow you just change the object TrainingEvent and fill the association with the teacher (parameter object of your page)

let me know if it’s not clear :)

answered