WEBVTT 00:01.010 --> 00:01.880 Welcome back. 00:01.880 --> 00:06.790 Now in this letter I need to add a fuel call ad going to do I the. 00:06.830 --> 00:12.770 We need three things we need symbol then we need price and the number of amount we own. 00:12.770 --> 00:14.660 That is not a number of amount we bought. 00:14.960 --> 00:20.300 So I would be adding these three fees and then I would be adding a button called add coin. 00:20.690 --> 00:25.180 And once users click on this particular button it would be simple database. 00:25.190 --> 00:29.400 So we need to create a phone channel so to take some input allocator. 00:29.510 --> 00:34.710 We have a method called entry and we just need to set our grid position. 00:34.790 --> 00:38.630 So let us do that and then we need to do same for a. 00:38.720 --> 00:41.710 And also for the lead here is our message called. 00:41.750 --> 00:44.980 Don't worry before ending of this course we are going to improve a lot. 00:45.420 --> 00:47.180 And this is the end of the loop. 00:47.200 --> 00:53.360 I think I should add something here that would be fine to do our data. 00:53.380 --> 00:55.120 We need to add three and two points. 00:55.120 --> 00:58.540 Let me expand you first to force would be our symbol. 00:58.540 --> 01:04.340 I would be taking the mask symbol or let's go to 60 and I need to use entry. 01:04.440 --> 01:09.370 So this is an entry method and we need to pass our route that is our by crypto. 01:09.370 --> 01:13.240 The second thing would be my board over time something I need to pass. 01:13.270 --> 01:15.770 So I would just use simple border wait. 01:16.000 --> 01:23.490 Once that is done I just need to save grade for this so this one is the last coin roll. 01:23.840 --> 01:25.540 And this is plus one. 01:25.550 --> 01:32.340 So we need to at this point these two even to be the point that the coin prize number of coin own. 01:32.360 --> 01:37.220 And I would be adding add coin Head Start robo will be the last one. 01:37.280 --> 01:39.830 And I'm calling will be forced. 01:40.400 --> 01:47.040 Let me run this one and see what we are going to get. 01:47.050 --> 01:48.790 So this is the first space. 01:48.960 --> 01:52.560 So this is for symbol I need to replicate this for next to 02:07.830 --> 02:13.920 don't forget to keep track of your column and then we need to add a button that button would be add 02:13.920 --> 02:14.960 coin. 02:15.060 --> 02:18.580 Remember we also need to write a function to add functionality. 02:18.690 --> 02:20.180 So that would be our coin 02:24.900 --> 02:28.200 this would be it or number three and this would be Rule number four. 02:28.330 --> 02:37.960 And it would be a column plus one and head I would be calling a function called as inside coin. 02:38.090 --> 02:45.770 Let me write INSERT COIN which will contain a school query I can simply define a function f 02:49.430 --> 02:51.400 and this will include a squirrel query. 02:51.410 --> 02:55.560 Let me use my car as an object and then execute. 02:55.810 --> 02:56.500 That is done. 02:56.560 --> 03:04.450 I just need to use insert into coin and then pass my symbol prize and amount and then use values and 03:04.450 --> 03:08.400 to stop some induction something to keep my database safe. 03:08.440 --> 03:10.850 I would be using caution marking the table. 03:10.870 --> 03:14.140 And then you need to pass the entities that you need to be careful. 03:17.580 --> 03:22.830 So here we need to pass a table now to get the values that are stored in this particular field. 03:22.890 --> 03:28.370 We can actually use and get metal so all we have to do is use this particular field. 03:28.380 --> 03:35.890 So this is a symbol field and I can directly parse this field here and use my gate Mentone. 03:35.910 --> 03:41.100 This would help me to face today later directly then what I'm going to call this internal coin method. 03:41.460 --> 03:45.200 So if I have three fields I just need to pass these values in the step on 03:51.340 --> 03:52.180 this looks fine. 03:52.300 --> 03:54.960 Don't forget to add a comment that's done. 03:55.000 --> 03:57.810 Let me close this one and refresh my application again. 04:01.150 --> 04:03.100 So here we have on our coin method. 04:03.160 --> 04:09.100 Let us test the functionality and later you can change the color of font and whatever we need to execute. 04:09.190 --> 04:12.290 But firstly I just need to check its functionality. 04:12.460 --> 04:22.410 So let me add on you can say BNP it a banana coin apologises tag then liquidate five coin only and pick 04:22.410 --> 04:26.690 one add coin there was a blink behind the scene. 04:26.810 --> 04:37.210 Let me finish this one so I got my BNP coin which is pretty good but we have this issue. 04:37.210 --> 04:37.800 Why. 04:37.850 --> 04:40.730 Because we are not clearing out of that application. 04:40.760 --> 04:42.830 So what happens when we click on a bit. 04:43.220 --> 04:45.890 When we click on it we call this function. 04:46.040 --> 04:48.280 So it rewrite all right. 04:48.320 --> 04:50.620 Everything to my previous code. 04:50.630 --> 04:52.430 That is my previous function. 04:52.430 --> 04:56.420 So if I have something executed here it just rewrite all that. 04:56.660 --> 04:58.040 So I need to fix this one. 04:58.160 --> 04:59.870 My will be doing that later. 05:00.350 --> 05:03.580 But now I know I can add a coin to to fix that. 05:03.600 --> 05:09.890 We will be doing something later on but I need to add a bit coin and also delete coin. 05:09.950 --> 05:16.570 So in the next lecture first let us add a bit coin and delete coin and then focus on that refresh method 05:16.570 --> 05:17.340 again. 05:17.570 --> 05:22.880 I know this is going to mess up a bit but if we are going to work on a project we need to complete the 05:22.880 --> 05:26.710 functionality and then fix it side effect. 05:26.720 --> 05:31.670 So I'll see you in the next one and let us execute update and delete functionality.