Data Control and Page Definition

18 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€67.24
List Price:  €96.07
You save:  €28.82
£55.68
List Price:  £79.55
You save:  £23.86
CA$100.66
List Price:  CA$143.82
You save:  CA$43.15
A$111.82
List Price:  A$159.75
You save:  A$47.93
S$94.88
List Price:  S$135.55
You save:  S$40.66
HK$543.79
List Price:  HK$776.87
You save:  HK$233.08
CHF 62.67
List Price:  CHF 89.54
You save:  CHF 26.86
NOK kr792.28
List Price:  NOK kr1,131.89
You save:  NOK kr339.60
DKK kr501.55
List Price:  DKK kr716.53
You save:  DKK kr214.98
NZ$123.71
List Price:  NZ$176.74
You save:  NZ$53.02
د.إ257.07
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,328.16
List Price:  ৳11,897.89
You save:  ৳3,569.72
₹5,958.01
List Price:  ₹8,511.81
You save:  ₹2,553.80
RM314.25
List Price:  RM448.95
You save:  RM134.70
₦108,236.03
List Price:  ₦154,629.53
You save:  ₦46,393.50
₨19,398.69
List Price:  ₨27,713.60
You save:  ₨8,314.91
฿2,394.21
List Price:  ฿3,420.45
You save:  ฿1,026.24
₺2,465.01
List Price:  ₺3,521.60
You save:  ₺1,056.58
B$426.13
List Price:  B$608.79
You save:  B$182.65
R1,290
List Price:  R1,842.93
You save:  R552.93
Лв131.30
List Price:  Лв187.58
You save:  Лв56.28
₩101,582.03
List Price:  ₩145,123.41
You save:  ₩43,541.37
₪254.54
List Price:  ₪363.65
You save:  ₪109.10
₱4,098.92
List Price:  ₱5,855.86
You save:  ₱1,756.93
¥10,967.38
List Price:  ¥15,668.35
You save:  ¥4,700.97
MX$1,406.50
List Price:  MX$2,009.38
You save:  MX$602.87
QR254.06
List Price:  QR362.96
You save:  QR108.89
P963.25
List Price:  P1,376.14
You save:  P412.88
KSh9,053.20
List Price:  KSh12,933.70
You save:  KSh3,880.50
E£3,568.78
List Price:  E£5,098.48
You save:  E£1,529.69
ብር8,687.63
List Price:  ብር12,411.43
You save:  ብር3,723.80
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,297.02
List Price:  CLP$99,000
You save:  CLP$29,702.97
CN¥510.87
List Price:  CN¥729.84
You save:  CN¥218.97
RD$4,243.89
List Price:  RD$6,062.96
You save:  RD$1,819.07
DA9,435.69
List Price:  DA13,480.14
You save:  DA4,044.44
FJ$162.05
List Price:  FJ$231.51
You save:  FJ$69.46
Q536.99
List Price:  Q767.16
You save:  Q230.17
GY$14,580.66
List Price:  GY$20,830.41
You save:  GY$6,249.74
ISK kr9,757.30
List Price:  ISK kr13,939.60
You save:  ISK kr4,182.30
DH701.41
List Price:  DH1,002.06
You save:  DH300.64
L1,291.33
List Price:  L1,844.84
You save:  L553.50
ден4,135.36
List Price:  ден5,907.91
You save:  ден1,772.55
MOP$557.92
List Price:  MOP$797.07
You save:  MOP$239.14
N$1,283.07
List Price:  N$1,833.03
You save:  N$549.96
C$2,564.57
List Price:  C$3,663.83
You save:  C$1,099.26
रु9,479.94
List Price:  रु13,543.35
You save:  रु4,063.41
S/259.51
List Price:  S/370.75
You save:  S/111.23
K282.61
List Price:  K403.75
You save:  K121.13
SAR262.99
List Price:  SAR375.71
You save:  SAR112.72
ZK1,928.73
List Price:  ZK2,755.44
You save:  ZK826.71
L334.62
List Price:  L478.06
You save:  L143.43
Kč1,690.23
List Price:  Kč2,414.72
You save:  Kč724.49
Ft27,882.67
List Price:  Ft39,834.10
You save:  Ft11,951.42
SEK kr772.23
List Price:  SEK kr1,103.23
You save:  SEK kr331
ARS$71,547.27
List Price:  ARS$102,214.77
You save:  ARS$30,667.50
Bs481.59
List Price:  Bs688.02
You save:  Bs206.42
COP$305,890.51
List Price:  COP$437,005.17
You save:  COP$131,114.66
₡35,162.35
List Price:  ₡50,234.08
You save:  ₡15,071.73
L1,769.11
List Price:  L2,527.41
You save:  L758.30
₲543,432.39
List Price:  ₲776,365.26
You save:  ₲232,932.87
$U3,131.93
List Price:  $U4,474.38
You save:  $U1,342.44
zł286.59
List Price:  zł409.44
You save:  zł122.84
Already have an account? Log In

Transcript

Hello, in this video I will explain what is the data control and the page definition. As I said before, once you create your model and you want to use the view object you should put this view object inside application modules and once you add the view object is application modules. Here in the data model in application modules you can decide which view object you want to use in zap view layer. So you will find here all views which you want to use it in the view layers it will appear here is a data controller. last videos you you saw me that I am using this data control drag and drop but in this video i will talk in detail about Data control and big definition. To explain this, let me just create a new page just explain what is the data control and which definition of names is as my template no problem.

Okay. So this is the page once you create the page it will be blank page and you will see there is no big definition for this. So, if you right click in the page and go to BG definition, you will see there is no pagination. Why? Why is this pitch has no big definition because it does To use any component from data control, once you start dragging some component from data control, the page automatically has an create a big definition, let us see is how this will work. So now, I have this page.

And as you can see, if you go to vision, no big definition, okay, so let us drag the department drag anything from the data control to the body. So, once you drag it here it is automatically create data control big definition. So, let's back again to the page and right click go to big definition, you will find the big definition is created. Why because we use something from data control. So let's talk about the data control that a company role will display old view object which you all created in the modern layer and you bought it in application which you will and it is a building that was a data control each view object once you expand it you will find the attribute of the view object which you created. And if he has master detail, you find the detail view object and you find the detail attribute as well.

For each of you, you will find two subfolders for each of you you will find any view object you will find two subfolders first one is the operation, the operation which you can this substances as you can see here, this is all operation related to the department view. What is this operation you have create just to create row create instance articulate insert it would carry the rows in memory and insert it into the iterator itself. I will explain this in detail. But this is a operation for the view object query it was parameters if you want to create a row for the department with some parameters if you want to delete execute to run the query again to execute your query, find if you want to search for some fields. First to go to the first row last to the last row next for navigation. Previous remove if you want to remove with a key if you know that as a rookie, you can remove the roles a rookie, sit current Pro with a key if you know the key you can sit zero current row as a control key value if you know the value of the key, you can sit the current role of a traitor in the current row with the value using is a key value.

Let's try to see how this Operation work okay now we created a bitch let us remove it again okay so this is a bitch if you want to display a department as a four so you can drag this department here as Ed for it means I need to display this view as a form. So you will see all the attribute of the view object. If you want to make someone read only or it is read only for you can select this it means the user will not update anything is just read only. If you want if you want it like this it is okay. It is updatable and the bridge Okay, what happened now once you drag it from here. Now you'll find each attribute value you say let's select the in Whitaker's Defense Department that you will find it is binding to the But I mean ID input value the bot binding.it means it is value in the big definition.

So, inch everything you would drag it from data control it will create a bridge definition attribute. So if you now you see here 1234567 attribute here, so if you have a tribute in the page, it means it will have seven attributes here 1234567 and three which here for for the department. So, here here's the bottom int ID. If you want to see the binding of it, you can right click, you can see go to binding so it is bind to this department ID. Okay, this is a project. If you select the bottom up name, you will find it is dramatically select the birth mean Name, since the manager to location name to first name, last name.

So each input text or each component here, by pointing to the page definition to this a three, two. So why is this is happening, because as you know, the department if you if you go to if you want to go to the View object in some other layer, you can just right click in the definition, it will open the view object to see the query behind this, this query will return multiple departments if you have, for example, 20 departments. So this SELECT statement will return 20 departments So, to displays this department in the page, it will create a iterator this iterator will hold the 20 departments or whatever number of departments you have in the database. So this eight return now will have all departments and you should loop over this iterator if you want to loop or to see all departments. So once you drag the bottom interview here, it automatically create a binding for each attribute and each attribute will point to the SIS a traitor.

By default it will the iterator will sit as a first row so it will display the first row of the department if you want to navigate in sizes a traitor you should add some operation here as I said like first last nicus little see how to do that okay in the in the Bennett form you'll find physical photo is a photo you can add here in next and previous but we can add surround this with Benny group. So I will add here Bennett group Lee I would I spoke about Ben googly out before and the output should be horizontal. Because I want to add the bottom in horizontal way. So now as I said the money form We will display only the first row. But if you want to navigate between sorrows in this iterator you should drag for example next next me Give me the next row is a traitor maybe previous back to the previous one or first last as you can see here is a big division is operation is when each component you will drag it from data control, it will map something in the data control digital nation was a big definition.

So lost here. So, this is the operation related to the view object which we track okay. And as you can see, even the operation will have the operation icons will like this This green icon was called action. So, this is if you see this as a budget efficient you will you will know this is something from operation okay. So, now all this attribute in the same I traitor and oldest operation in the same age range if you by mistake take operation of different view not your main view by mistake you drag great insert here as if it is for the department what happened you will find this operation is pointing to the different iterator not the main thread so, you will know okay this is great insert boy into the employee no I work with department so it means I drag a wrong operation. Once you delete it from here, it automatically we'll delete from the page definition.

Okay, so now we have this Let us now run and see how it will looks like. As you can see here it is so in the first iterator or we can what we can do we can try to open the department tables here. As you can see 500 this is first row, point here, first row. Of course because of all humans in the first one you can press first and because there is no previous it is automatically disabled. So I need to go for the next row is to press next. It will go for the next row is a traitor.

Next, and you can next previous back again, Nick is equal to the last through First row. So in here what you are doing you are navigating between rows into a traitor. Okay which a traitor you are navigating between its row, you can go in the beach definition and you will be able to know just for nicus this is an operation which you navigate or this involves this operation, just like right click go to binding and you will no be able to know which department or which or a trade or you are navigating between this. This will help you to know for example, if someone else another developer develops this page, and you want to know which view object this data come from, how you will know it so you can open the page. Here's the big name you'll find it here. So you will go for the page name.

You will find the four Which is a bitch to know which view object in the model this form is look by look at it, you will know this from BG definition. So, what you can do just right click on any of this field go to binding then you will find it is pointing to this iterate or and this it will point to this object right click here is the definition. So, you able to find the view object in the model which this for read from how you know this attribute is has a binding variable here. If you see the value of this each of this is a property here is a value it is binding.it means bind department dot input value, it means go to the binding dot department to input value it means it gets the value of this department see is how what is the page definition and what is the operation and view object you can drag drop whatever you want from data control and once you drag anything here it will map to the page definition and each value will point to the A treaters and each a traitor or point to one of their view object.

Once we go for programmatic session, I will show you how you can programmatic navigate between a threat or from the beach definition. One more thing I need to show it to you here that as I said every operation here is point if you see these Action Lists are going to the binding to previous pointing first. So, if for example, you delete one of this First for some reason, first action here okay and you see yes, I will remove it. So, it means this first now will not have a binding. So, if I run this again and try to bris on the first you should get an error, because he you won't be able to see we can go to last year's even even it will be a splayed why because, here if you go to the poverty here, you will find here is a behavior, zero disable it is reading from the binding.

So, actually there is no binding this why you will find is always disable. So, this has now removed this disable property. Let's refresh the page. Now you find the first one If a person's a first. Now, as you can see, there are an exception and the He sees a look you will find here an exception because can't find this binding okay how you will add this binding again Do you need to drag it again this is one option you can drag the first again here is the page or you can edit from here straight away if you know that word is a threat or exactly or is the object you can brace here and it is an action I need to add the action he will ask you in which view object I need it is in department operation first, okay. So you add now it in their big definition.

So again, if you try to run it again, you should be able to press the first without any issue. First sukham last first, now it is okay. So be sure to every action has an actual list of going to the binding or even any attribute read the binding to be sure that it should have a binding here. This is what is the page definition and the vision and data control. As I said as division definition, it looks like a layer between the page itself and the model. From BG definition you will be able which each component point to what view object in some water and once we get into programmatic where you would you know, I will show you how you can use programmatic way to read a tree to navigate a tree to help you execute an action like exists from the base from programmatically from backbeat.

All this I will show you in the programmatic section. So hopefully as this the board is over Just one throat and beach tuition is clear for you now. See you next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.