You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: labs/telework-utah/1.0-Build-the-Foundation/1.2-Create_the_Tables.md
+78-49Lines changed: 78 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,11 @@ id: create-tables
3
3
title: "1.2 Create the Tables with Data"
4
4
hide_table_of_contents: true
5
5
draft: false
6
+
tags:
7
+
- UTAH
6
8
---
7
9
10
+
8
11
We will create the core tables for our application. To create a table in App Engine Studio:
9
12
10
13
1. Click the **Add** icon (⨁ Add) for _Data_ on the _App Home_ tab.
@@ -29,24 +32,28 @@ We will create the core tables for our application. To create a table in App Eng
29
32
5. <spanclassName="large-number">①</span> Check ☑ <strong>Import spreadsheet data</strong> (in the telework_lab files folder we downloaded earlier),<br/>
30
33
<spanclassName="large-number">②</span> Click on <strong>Convert to table</strong>.
31
34
32
-

35
+

33
36
34
37
35
38
6. <spanclassName="large-number">①</span> Select <strong>Create new table</strong> (to hold the Arrangement data),<br/>
36
39
<spanclassName="large-number">②</span> Click on the <spanclassName="aes_button">Continue</span> button.
37
40
38
-

41
+

39
42
40
43
41
-
7. <spanclassName="large-number">①</span> Click the Expand/Collapse icon (⌄) to see advanced configuration options,<br/>
44
+
7. <spanclassName="large-number">①</span> Click the Expand/Collapse icon (⌄) for the "Code" field to see advanced configuration options,<br/>
42
45
<spanclassName="large-number">②</span> Check the <strong>Display</strong> checkbox,<br/>
43
46
<spanclassName="large-number">③</span>Click on the <spanclassName="aes_button">Continue</span> button.
44
47
45
-

48
+

49
+
50
+
51
+
:::info
52
+
The **Display** field is the one that appears if you reference this record from another table. A table can only have a single field marked as the **Display** field.
46
53
54
+
For example, in a drop-down or reference we want it to display the code "Remote Telework" and not the full Description.
47
55
48
-
:::tip
49
-
We need to set what value to display when these records will be referenced.
56
+
Fields are also known as table columns.
50
57
:::
51
58
52
59
@@ -62,7 +69,7 @@ We need to set what value to display when these records will be referenced.
62
69
<spanclassName="large-number">②</span> For the <strong>user</strong> role, click the <strong>All</strong> checkbox and then remove the <strong>Delete</strong> permission.<br/>
63
70
<spanclassName="large-number">③</span> Click on the <spanclassName="aes_button">Continue</span> button.<br/>
64
71
65
-

72
+

66
73
67
74
68
75
10. A loading screen will appear while the table is being created. When it completes, click <spanclassName="aes_button">Done</span>.
@@ -71,119 +78,141 @@ We need to set what value to display when these records will be referenced.
71
78
72
79
11. We haven't converted all the sheets in the spreadsheets, so we'll see this message pop up.
73
80
81
+
:::info
82
+
This is intentional to show you that you do not have to import all of the sheets in a workbook.
15. On the _Choose a spreadsheet to import from_ screen, click the **Drag and drop or browse to upload spreadsheet** link.
91
101
92
102
93
-
16. Browse and select the **Telework Cases.xlsx** file you downloaded.
103
+
16. Browse and select the **telework_cases.xlsx** file you downloaded.
94
104
95
105
96
106
17. Select ☑ **Import spreadsheet data**.
97
107
98
108
99
109
18. Click on the <spanclassName="aes_button">Continue</span> button.
100
-

101
-
110
+

102
111
103
-
19. This time on the _Where do you want to import your file into?_ screen, select the **Create from an extensible table** tile.
104
112
113
+
19. Select **Create from an extensible table**, then click <spanclassName="aes_button">Continue</span>.
114
+

105
115
106
-
20. Click on the <spanclassName="aes_button">Continue</span> button.
107
-

108
116
109
-
110
-
21.**On the _Which table do you want to use?_ screen,**<br/>
117
+
20.**On the _Which table do you want to use?_ screen,**<br/>
111
118
<spanclassName="large-number">➊</span> Click in the table field,<br/>
112
119
<spanclassName="large-number">➋</span> Select the <strong>Task</strong> table, <br/>
113
120
<spanclassName="large-number">➌</span> Click on the <spanclassName="aes_button">Continue</span> button.
114
121
115
122

116
123
117
124
118
-
22.**On the _let's get more info about your new table_ screen,**
125
+
21.**On the _let's get more info about your new table_ screen,**
119
126
<br/>
120
-
<spanclassName="large-number">➊</span> Set the table label to <strong>Telework Case</strong>. (Hit <kbd>⇥ Tab</kbd>) The table name will auto populate, <br/>
127
+
<spanclassName="large-number">➊</span> Set the "Table label" to <strong>Telework Case</strong>. (Hit <kbd>⇥ Tab</kbd>) <i>The "Table name" will auto populate</i>. <br/>
121
128
<spanclassName="large-number">➋</span> Check the <strong>Auto number</strong>, <br/>
122
129
<spanclassName="large-number">➌</span> Keep the Prefix as <strong>TEL</strong> <br/>
123
130
<spanclassName="large-number">➍</span> Click the <spanclassName="aes_button">Continue</span> button.
124
131
125
132

126
133
127
134
128
-
23.**Set the permissions.** <br/>
135
+
22.**Set the permissions.** <br/>
129
136
<spanclassName="large-number">①</span> For the <strong>admin</strong> role, click the <strong>All</strong> checkbox <br/>
130
137
<spanclassName="large-number">②</span> For the <strong>user</strong> role, click the <strong>All</strong> checkbox and then remove the <strong>Delete</strong> permission. <br/>
131
138
<spanclassName="large-number">③</span> Click on the <spanclassName="aes_button">Continue</span> button.
132
139
133
-

140
+

134
141
135
142
136
-
24. On the _Great! Now your table is ready for data_ screen, select the <spanclassName="aes_button">Continue</span> button.
27. Notice the fields have already been auto-mapped, but some are not correct. Clear out the _Transfer reason_ value.
148
-

159
+
26. Notice the fields have already been auto-mapped, but some are not correct. Clear out the _Transfer reason_ value.
160
+

149
161
150
162
151
-
28. Click on the Add Fields link button at the top.
152
-

163
+
27. Click on the Add Fields link button at the top.
164
+

153
165
154
166
155
-
29. Hover over the row and edit the Reason field by clicking on the pencil icon.
156
-

167
+
28. Hover over the row and edit the Reason field by clicking on the pencil icon.
168
+

157
169
158
170
159
-
30. In the **Field type** section select **Choice** then click the <spanclassName="aes_button">Update field</span> button. The choices will be added for you based on the spreadsheet data!
160
-

171
+
29.
172
+
1. Click "String" under **Field type**
173
+

174
+
2. Select **Choice**
175
+

176
+
3. Click the <spanclassName="aes_button">Update field</span> button. <br/><br/>
177
+
**The choices will be added for you based on the spreadsheet data!**
178
+

161
179
162
180
163
-
31. Days per week is ok as an integer.
181
+
30. Days per week is ok as an integer. Do not do anything to it.
182
+

164
183
165
184
166
-
32. Days per week is ok as an integer, but Edit the Arrangment field.
167
-
- Field type: **Reference**
168
-
- Reference table: **Arrangement**
169
-
- Click the <spanclassName="aes_button">Update field</span> button.
185
+
31. Edit the Arrangment field.
186
+
1. Hover over the row and edit the Arrangement field by clicking on the pencil icon.
187
+

188
+
2. Click "String" under **Field type**
189
+

190
+
3. Select "Reference"
191
+

192
+
4. Type "Arrangement" into the **Reference table** field and click on the "Arrangement" table.
0 commit comments