Hello, friend, welcome back.
In a previous video, we successfully complete our create position, that means the admission.
So from here now we can actually add our new musician, right?
So now I want to do I want to update it.
So if you want to update it, there have also another class that are also another building class.
We have to, first of all, call it.
That is our last name as our date view.
OK, so I just simply, first of all, defining it as an updated view.
And now also we have to do we have to create one of the class.
So after this after this, I want to do and create another class.
And I just named this class as update.
OK, I did, and the musician, I name it as ablate musician and also to be in a date with our this
class, that means the added value.
Plus I just simply defined our ability class.
Right.
And after that, we start out, you want to update.
So you also have to define that field like it's either simply defined as the field.
And with this field, I want to do I want to define our field names.
I want to update our first name, first name.
And also I want to do and update our installment.
That's all that our database feeds them, so here I only want to update our database feed as a first
name and the statement, and after that we have to do we have to define our model and then our models
or models and those models we start out on top that I don't doubleheaders lot of along with the table.
So to simply define our musician table name and also here we have to do we have to update it with a
specific one of the idea.
Right.
That means if you want to update like is it so if you want to update a specific this name that means
a fast name and the instrument, then you have to also updated with the specific one of the that is
wanted.
You want to update do you want to update Seven Idee?
If you want to update it, then you have to define that idea.
So this will be for that business we have to do we have to create all the wall.
So go to what you won't tell anybody what is will be just like that.
Same because in our musician details, I have also defined the idea, so it'll be just like the same.
So here I have defined as a musician, not details.
I name it as an update.
OK, just name it as update.
And also it will be updated with Piqué.
That means the Primerica.
And also I have created one of the class, in our view, into The View.
I have created class name as an object musician.
So I just simply defined that name as a musician, as you and I have, I name it.
I named this part as a musician, object, a friend.
And also here we have to do we have to define on the bottom like here, when this data will be in our
details space into the details area.
I want to do I want to create another button for the update so quickly as an update, then this will
be updated.
OK, so for doing this, we have to do have to add this button in our musician details.
So now go to our fast app and that is our musician details.
So after this.
OK, so after this year, I want to take one of the active say to simplify the Haviv and also here define
what the class does, defend the class as a bit and and I name it as another class as a warning.
OK, just name it as a meeting between orning and then between Assam and then it shall be as object,
say, to simply the update.
And also here we have to do have to define our model so that they overlap.
But they have already created sorry that be as a percentage.
OK, so this person is our key as you.
Well and then also you know what you are al-Attiyah with our app name, I have created one of the paths
as a musician data the musician objects.
Right.
So I just simply copied that fast app.
So that is our fast tap and into the fast tap here.
Also we have to define our path.
So I have already created one of the real path.
So that is all musician update's.
I just simply ibid that musician.
Right.
And also here we have to do we have to define not the idea because of all here.
You can see I have also defined out the idea as a musician and idea as a paramedic.
So now also we have to do the same things that we did before.
Like I just take that things with the picture and we get with this here I get all the data with our
musician.
Right.
So I already get all that.
Our musician details that with this musician.
If you go to our view into the musician details here, I have all the data with this musician.
Right.
And also here I displayed.
So now with this musician, I want to do want to access our ID.
So with this musician, I want to access our IDR.
I am defending by default one as a picture.
That is the primary key.
So now you going to see one of the music like here, a few knuckleheads save all.
You will be very much interactive.
One of the things how much easier it is like here, if you go to that home, what would that ghazarian
and now if you click on the update, you can see I didn't defined any form by default.
It's actually getting our this form out.
So that is actually using our musician update with the specific one that is actually using our this
add is OK, that means into the musician admonition here to have already get all that our feel that
by default is actually getting that feel like if you give us an update and you can see for the update,
I have defined the two Orefield.
If you go to our view and the view I have defined as a first name and they instalment the for the reasons
you can see, it's not showing as a first name and the instalment data.
And also here is now showing as they add new musicians.
As I told you, it's actually using our deep space.
That means our ad knew that that musician pays.
You considered a declared musician and that is our form.
So now by default, actually, it is using our this form, you can see that the add new musician and
then have define two of these feet.
I want to update.
So for the results it's not showing as a first name are the instalment.
So it's not should be displayed like that with that means when.
Way click as they update Danas automatically.
Here is this text will be updated right here.
I want to display a different text and when it will be as a admission page, then it's OK with me.
So here, if you want to define this step up on the condition, then you can defining it.
So you have to do have to defining it in our musician form.
So when our musician form.
So that is our admission from right.
In particular that we had actually what this piece is now loaded for our object.
So here I want to do to define the condition.
So I just use pretty simple things.
I just simply define the condition.
And here I define the if condition, if our form, because with this form we actually get all the data.
So we do this form I define as a stand, OK, in a stance into the instance when it should be any piqué,
that means our primary key, then I want to do and display another text.
So here I just simply define another text.
Then it'll be displayed as an added musician object musician.
OK, so now I want to do I want to define Alethia.
Shall we display our disposition?
So I just simply defined as El's.
So here I define as El's.
Or else it will be this hour that takes that decision to text, that means here after this I want to
do and to end it.
So I just simply and our DCF condition and I hope you can well understand about it.
So here I define it because our same base is actually lauded for our two.
So it's lauded for our ad data.
That means that ad, the musician data and also the same form is loaded for our underpays where our
object.
Right.
For the reasons here I have defined this condition.
If you go to our Etoile and into the wall here, you can see there is our ad musician into the ad militia
and they have no idea as a picture.
But here in our musician update you are they have also of the idea as a piqué.
Right?
So far the results here I have defined when he get this picture ID, so far the results here, I'm defining
it in this form.
I have an API that means the primary key.
Then it should be displayed as an added musician and else it shall be displayed as a musician.
OK, so now I just simply defining that part and also I am this condition.
Now if you click on this, save all I to save all.
And now if you go here, if you refresh it now, because if for this you all that have no ID, that
means that no primary for the results is not showing as they add new musician.
But if you go to home, if you go to Gaza and look at the update now, you can see now they have also
on the idea.
So with this idea, I have defined some of the condition.
When are you getting any idea then is to display another text as an object musician?
So now you can see it's not showing as ablate musician and also it's getting our appropriate one in
the ME and the instrument data.
And also here, we don't need to add any code for this.
It automatically will be updated like here.
I want to update our first names for now and to remove that one and also from the guitar.
I remove that one.
Now, if we look at musician now you can see it's automatically updated.
Our Kasie is updated and also that the guitar is updated.
If you go to our home, that is our Abebe.
So here I want to update as a B update every update and also in a statement I updated as a C, C updated
click on the musician.
Now you can see our first name is updated and also our instalment is updated.
I hope you can well understand about it.
And also, if you want to update your last name, then you have to do you have to add that another field,
because of all in our view area, I have only defined the to feel right now I going to take another
one.
I just take another one as a last name.
That is our last name field.
OK, the last and the last name and the last name.
I also defined this.
So now we can actually update our first name, last name and the installment.
Now I just click, as I say, will now go here, go to home like there is a Kazarian.
You consider it a clear Kasie and our last name and then our instrument.
So no one to update it.
Now we can see that the field is added as a last name.
So I want to update our last name now.
Sound updated.
Click on the ADD musician.
You can see it's not perfectly now.
Updated, I hope is very much clear to your friend.
So with this hourglass, that means our added value class, we can actually update it and also to have
another one for the deluxe.
So if you want to direct this data, how can they elected?
In our next video, I will show that things with the live example.
So thanks for watching and I will see you in the next video.