-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGettingStarted.Main.DataModule.dfm
97 lines (97 loc) · 2.42 KB
/
GettingStarted.Main.DataModule.dfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
object MainDataModule: TMainDataModule
OldCreateOrder = False
OnDestroy = DataModuleDestroy
Height = 444
Width = 540
object WaitCursorFireDAC: TFDGUIxWaitCursor
Provider = 'Forms'
ScreenCursor = gcrHourGlass
Left = 312
Top = 312
end
object BackupSQLite: TFDSQLiteBackup
DriverLink = DriverLinkSQLite
Catalog = 'MAIN'
DestCatalog = 'MAIN'
Left = 48
Top = 160
end
object ValidateSQLite: TFDSQLiteValidate
DriverLink = DriverLinkSQLite
OnProgress = ValidateSQLiteProgress
Left = 176
Top = 168
end
object SecuritySQLite: TFDSQLiteSecurity
DriverLink = DriverLinkSQLite
Left = 312
Top = 168
end
object CategoriesQuery: TFDQuery
Connection = DatabaseConnection
SQL.Strings = (
'select * from Categories')
Left = 176
Top = 15
end
object CategoriesDataSource: TDataSource
DataSet = CategoriesQuery
Left = 312
Top = 15
end
object DriverLinkSQLite: TFDPhysSQLiteDriverLink
Left = 48
Top = 9
end
object DatabaseConnection: TFDConnection
Params.Strings = (
'Password=12345')
LoginPrompt = False
BeforeConnect = DatabaseConnectionBeforeConnect
BeforeDisconnect = DatabaseConnectionBeforeDisconnect
Left = 48
Top = 64
end
object ProductsQuery: TFDQuery
MasterSource = CategoriesDataSource
MasterFields = 'CategoryId'
Connection = DatabaseConnection
FetchOptions.AssignedValues = [evMode, evItems, evCache]
FetchOptions.Mode = fmAll
FetchOptions.Items = [fiBlobs, fiDetails]
SQL.Strings = (
'select *, '
'StockPrice(UnitPrice, UnitsInStock) as StockCost '
'from Products'
'where CategoryId = :CategoryID')
Left = 176
Top = 72
ParamData = <
item
Name = 'CATEGORYID'
DataType = ftAutoInc
ParamType = ptInput
Size = 4
Value = Null
end>
end
object LoginDialogFireDAC: TFDGUIxLoginDialog
Provider = 'Forms'
Left = 48
Top = 312
end
object ErrorDialogFireDAC: TFDGUIxErrorDialog
Provider = 'Forms'
Caption = 'FireDAC Executor Error'
Left = 176
Top = 312
end
object FunctionSQLite: TFDSQLiteFunction
DriverLink = DriverLinkSQLite
FunctionName = 'StockPrice'
ArgumentsCount = 2
OnCalculate = FunctionSQLiteCalculate
Left = 48
Top = 232
end
end