Hello, this video I will show you how you can update the view object which is based on the entity object after you update the entity object, for example, you remember that we add into student into object we add attribute called student create date, because we create this field from the database level, after that we make like a sync between the entity and database and we generate this new column or new attribute. So if you go to the student to view attribute, you will not find this student created here. So to add this attribute from the entity, you can add from here, add attribute from entity then it will display all in the attribute then you can find here Create date you can short it here again this you can add multiple column repeated in the view object level. Of course, you will need for this we only want time attribute.
So, this is student create date we edit it here, it will display it here coming from the entity students. This is how you can update the view object which is based on entity wants entity is sync with the database. So in the database level, if you add any column you should update this entity object after that you can update the entity object. Sorry, you should update in object opposite you can update the view object. Let's now continue make some configuration in the view object. Last video we add some links and we add it later list of value.
So in this video, let's curried view criteria for the search. So in our PDF application we will create a search page for students and for teacher. So we can create a view criteria which will be used in the search page. So I will omit a student that's closest to the interview. And they will go for view criteria and they will add a new view criteria. We can see search student and we will add the attribute which we will search we can search by student ID ID.
We can search by student name contains. We can search boy students create date Okay student address contains. Here we can select my what is the default operator. If you want to search by students start with in the width. I prefer for in string we can make it a container to be easy. You can add his words appearance information like your name.
You can add your own phone appear on to me and we can add the last one. Student Data ICD two versus one of things we can add. Okay, I think that's enough for student here that you all are you will need to see if you want to search query automatically in unwanted mode. Show match and any we don't want to see show motion any. If you want to query to be automatically you can proceed but we don't want this as well. So I think this is now Okay, for searching about a student.
Okay. We just need to set the width of this attribute because as the width of the attribute will display in the search field, so let us here go for width and we add the width maybe 10 for ID 24 name or we can make it all equals we can add ports or 1515. So you can just add a width for All attribute which will be used in the search, I think we prefer to either student B or on phone. I need to be always to be maybe we can add 12345678 I like to be a maybe it feel to search so that I will add as a foreign as a four column each column has to row. So let's just make it like this. Same we can do in the teacher view.
I will go for the Eucharist area for search. teacher and I will add like teacher ID equal teacher name contain future addresses contain short detour appears equal teacher for equal cannot one more so that to be six like to be cannot be sure gender equals okay so this is a you need to watch and oh we don't think okay so here I create two view criteria on for searching student here one for sale ABOUT SECTION teacher So this is for just searching a pages, we can add as well for the class if you need to add search if you want to search for a specific class, but the class actually has only two attributes a class name and, and great number so we can add this as a lookup into class when we need to create a search for this. That's fine. This is how you can configure now with a view object, we configure view links, we add lists of values, we add view criteria, and we can see the width as well as a teacher attribute.
So this is with 15. Okay, so Now, almost we finished the view, view object configuration. So next video we can start to configuring the application module. And after we finished application module, we can go jump into the view controller because the controller, most of the work will be in the view level. And the ones we need anything while developing the view, level to me change we can back again to the entity object and we can make some changes in the model layer as well. So see you next video.