Hello in this video I will show you how you can write some code in the view object live in last videos I show you how you can write it in the entity object level. So this video will talk about view object. View object. If you open the view object click department which we took it as an example, you will find here which offers word like in entity, but here you will find here resolve clauses. Once you have a clauses here, you will find Gerard two type or three types of classes. Forget this the GOP definition clause we are using always department if you and Bill and divorcement futuro what is different poses this I will explain new this video about the bottom interview ramble and This video will show you auto interview the northwind to row view the bottom interview row embell is same like entity object, but this would be in their view level.
So here you will includes accessors accessors. As I said it will be setter and the getter for the attribute. So let's try to display here. So you'll find here setter and the getter. So it's same like in entity object if you want to set the department name. Once you set the name, we want to set another field like manager you can do it here as well.
So, this is the same like entity object but it will be in the view level not entity level. Sometimes you can add some attribute like transit attribute in this attribute will be only displayed in the view object. So you can Is that case you can do it in the view living or if the entity object has multiple view objects used it and you do want to add the custom code in the entity object you can do it in the view option, but you can ask me question Where is this create and remove and do DML like entity object here, I will tell you here is similar entity object for setter and getter for create and for remove, no no do do DML because it did do DML is a database operation which has to be only in the entity object. So here in the interview living there is no DML operation, but you can have a create and have a remove and setter and the getter same like entity object, but how you can display this credit you will not find here create no create.
So where you can split it you can go to Here in the source wolf all right Miss woods and search for create you can do the same as soon as the entity object bought into the object has a wizard easy wizard to into you can just select the query to display it but actually you can do the same in the entity object so you can select Create and release Okay. Now, Zachary is appear here same for remove, if you select source override missile and search for remove, you will find remove as well. So, same what we did an entity object you can do the same in zone view row embell most of you embed view row embed the bottom interviewer or embed, but in this will be in Zed. View object level not entity object level. So if you have multiple view object Read from the entity the same entity, the change will be only affected in this view object, but not affect the other one.
This is simply his view ro ml I will not give you an example because we already did it in the entity living. So, the same you can use the setter if you want to see the department to set manager was 100 you can do is the same will exist okay. So of course if you should not override the same value in the department if because that value is it was meant to make some conflict or you can take one of these will take effect. Of course we should not aware about it if you override this value and the department entity, so you care about you should care about this and carry it and remove as well. Before Currys Uber it would be before the roads created after October is will be after the rule was created you can set some default value for zero same before rule is removed you should be if you want to make some check you can do it here and after zero is removed you can do your business here.
This is divorcement view row empl. Nicosia video, I will talk about depart our view class view so see you next time