Hello, last video we finished our same class to teach our page so let's move to the next page which is add student to class in this page it will be almost same like here, but instead of the teacher here it will be student here and here will be student class. So let's start working on this page. So, we go from student to class here, as because of this page layout is looks like same like class to teacher page. So, you can copy the whole page content like this copy and good student class and those two first here like this, then you will do you will do you will just change the text here instead of teacher we can say students and here we can students see to you in classes. Okay, actually soon should be in one class only, but maybe this design can be work as if you want to see the history of the students the class.
So, but now we need to remove this table and removes our table and what our tables here will be the students. So I will go for the control students view and I will drag it here. Of course it will be read only, they would use a roll just filter or search or sort and single row selection. Okay. second one will be student clauses. Okay student clauses, sorting filtering, single row.
We don't need to see transient attribute always is a student foreign key it will be out tickets okay well as you can see classrooms info tickets do not list of values we have to add the list of value first for classroom. So let's cancel this and go to the student class here. We are already here okay so here is a classroom I will add the list of value I will add me here he has classroom I see room number Now move the map to classroom and here I will add a room number and agreed number. Okay so now we add this value here. Let's back here again drugs student clause here as a detail. So here I can see now it is a bit here I will remove this and this will be overtaken So at least the user will only take as a class rule here that's fine.
So, just take what I just will go here and then make it minus one minus one we can take the width which we set in the teacher 650 Have a look in here 550 So, one will be with 650 and one will be okay. So was it missing thing is operation here, ad. You will find here it is pointing created, but as you See this orange it means it can't see this in the binding. So if you go to go to budget definition, you will not find a variation here, create, insert, and delete. Because this is the orange box it means it can't find it here. So, because we copy this actually from the other page, so you have two options, you can drag and drop each table each button here to edit the binding or you can go to the binding straightaway and add all this operation so I will go here and I need to add action.
Here you will select the unit to action in which a traitor wish to view and it's for view student class. View three operation I will add, create, insert. So create insert now boy into the detail view and they will do the same for Delete operation delete and I will commit and rollback. This is another way you can add action in the binding without dragging it drag it from data control you can go to the binding straightaway and add it like exists. So now if you go to binding you will find now each button mapped correctly to the action. I think we can try now to run this page and see how it will look like okay so we can see here is old students.
If we select for example, student number nine sin and the preset you'll find here cross room You can select and save. Okay If you select the other one can add class and save. You can just maybe make this a stretchable okay. So let's go here for 50 baht, we can see here last column can be stretchable so let's refresh it will be like this. So I think now this pitch is simple and easy. So next video we will move to the next page which is student results so see you next activity