1
00:00:00,450 --> 00:00:06,390
OK, so now let's go ahead and create the egg transaction component like we've already constructed,

2
00:00:06,400 --> 00:00:10,020
but let's add some functionality to it too.

3
00:00:10,080 --> 00:00:15,120
Right now we have just hardcoded everything and we have not given any functionality to like adding the

4
00:00:15,120 --> 00:00:15,660
transaction.

5
00:00:16,590 --> 00:00:21,630
So let me just, first of all, import the required things.

6
00:00:21,720 --> 00:00:24,860
So first of all, we import the U.S.

7
00:00:24,970 --> 00:00:29,940
State and then we will import use context as well.

8
00:00:31,620 --> 00:00:37,630
And in the next line, we will import our global context, but will be in AU.

9
00:00:39,180 --> 00:00:44,220
On the other hand, global context from global context, auto imports for me.

10
00:00:45,010 --> 00:00:45,810
OK, next.

11
00:00:45,810 --> 00:00:55,020
What will do in the transaction is that we'll create a constant flow that will have the value of the

12
00:00:55,320 --> 00:00:57,270
label, label or text.

13
00:00:57,420 --> 00:00:59,920
Alright, so phones?

14
00:01:00,740 --> 00:01:01,050
Know.

15
00:01:02,260 --> 00:01:09,730
Sex and sex acts, you can call it liberal, and certainly, but I'm just calling it text.

16
00:01:10,730 --> 00:01:18,770
Some places I call it a label, but works fine to state and initial value will be empty.

17
00:01:19,850 --> 00:01:20,220
Shrink.

18
00:01:22,420 --> 00:01:22,840
Next.

19
00:01:24,010 --> 00:01:30,040
We'll have the amount also to consider in a moment, and then we have enough said.

20
00:01:32,760 --> 00:01:36,420
Some of the spending is going to be used to.

21
00:01:37,350 --> 00:01:41,400
Since it's a numerical value, so the initial amount would be zero.

22
00:01:42,090 --> 00:01:42,570
All right.

23
00:01:43,170 --> 00:01:50,430
So next what will do is that will create context in Utrecht using this.

24
00:01:51,780 --> 00:01:53,400
Will be a transaction.

25
00:01:55,880 --> 00:01:57,220
From Sack.

26
00:01:59,690 --> 00:02:02,450
They will be in this context.

27
00:02:04,190 --> 00:02:06,500
And inside, this will be global context.

28
00:02:07,870 --> 00:02:08,500
All right.

29
00:02:09,220 --> 00:02:10,360
There's something like this.

30
00:02:10,990 --> 00:02:15,910
And next, we want to add some more functionality for moving on.

31
00:02:16,270 --> 00:02:17,500
What will do with that?

32
00:02:19,750 --> 00:02:23,200
What happens is that any form you submit or.

33
00:02:24,770 --> 00:02:32,270
Is that like any form in a statement or an GSX, when you write and on the air, on the browser, when

34
00:02:32,270 --> 00:02:33,610
you submit that form, so.

35
00:02:34,340 --> 00:02:39,390
So generally, the natural tendency is that the page reloads and the site order.

36
00:02:39,410 --> 00:02:42,680
So we want that to not happen.

37
00:02:42,680 --> 00:02:46,010
So first of all, feel written on summit.

38
00:02:46,130 --> 00:02:53,180
So whenever we create the click this button right or so we want to fight off a function is a which is

39
00:02:53,180 --> 00:02:53,750
on some.

40
00:02:57,090 --> 00:03:07,020
So this is what we are going to create a to function that will be on some level, so on some merit in

41
00:03:07,080 --> 00:03:07,350
the.

42
00:03:10,070 --> 00:03:14,090
We'll have event as an argument or E as an odd argument.

43
00:03:14,690 --> 00:03:17,580
And so you don't put around.

44
00:03:18,990 --> 00:03:24,000
If this is a really, really important thing, I was taught to live in one of the other projects and

45
00:03:24,000 --> 00:03:25,740
this is really, really important.

46
00:03:25,920 --> 00:03:29,520
It prevents the browser from reloading while submitting the form.

47
00:03:32,080 --> 00:03:37,480
Next, what we will do is that we will create another constant for a new transaction.

48
00:03:38,140 --> 00:03:52,210
So this will store the new transactions, new funds like Tron section and this will be like like this,

49
00:03:52,420 --> 00:03:55,570
it will have an I.D. So it is really, really important.

50
00:03:56,120 --> 00:04:01,480
So this will be a random I.D. It will be different for every other transaction.

51
00:04:01,600 --> 00:04:10,480
Matt Tharp floor so that we only receive like integers, not the float floating point numbers.

52
00:04:10,840 --> 00:04:20,110
That's why we are giving that top floor and inside this will have on metadata random mad dog random.

53
00:04:21,120 --> 00:04:26,370
This dysfunction matador random function gives a random number to.

54
00:04:27,630 --> 00:04:35,040
That will multiply it by two to three or five six, maybe.

55
00:04:37,070 --> 00:04:37,490
Then.

56
00:04:38,730 --> 00:04:42,060
So my column and next will give next.

57
00:04:43,350 --> 00:04:46,170
Now among would be.

58
00:04:48,770 --> 00:04:56,570
Plus, I'm out now what I am trying to say is that whenever we add I like new transactions, it should

59
00:04:56,570 --> 00:04:59,370
add the value to the previous amount.

60
00:04:59,390 --> 00:04:59,790
OK?

61
00:04:59,810 --> 00:05:06,530
Whenever like we got a salary and we got another bonus to that bonus should be added to the salary.

62
00:05:06,940 --> 00:05:09,590
But that is what we are doing here.

63
00:05:10,070 --> 00:05:12,760
OK, so next what we will do is that.

64
00:05:14,470 --> 00:05:22,720
We'll call this a transaction after this, so it will be a transaction to insert this will pass the

65
00:05:22,720 --> 00:05:23,620
new transaction.

66
00:05:24,990 --> 00:05:27,840
OK, so new transaction really paused here.

67
00:05:28,480 --> 00:05:32,610
Now we want to add some functionality to this form, like on some methanol.

68
00:05:33,270 --> 00:05:41,730
So first of all, in the form, the form will provide on some meat, on some meat.

69
00:05:42,750 --> 00:05:44,730
We'll call the function on some.

70
00:05:46,380 --> 00:05:51,720
Look this on somebody, the Dallas Cook function, and this on top of it is we have created.

71
00:05:52,050 --> 00:05:59,160
OK, you can and you can name this function like A. and call the exact same name here.

72
00:05:59,760 --> 00:06:01,200
That does seem like this.
