March 2020
Intermediate to advanced
534 pages
14h 15m
English
The first new concept is the use of the clustered index to control the order in which the records are displayed in grid controls. This is simply using the fact that SQL will return records in the order of the clustered index. Composite keys are fine for this purpose, but we just wouldn't usually use them as a primary key. See the There's more... section on surrogate keys.
One point to be highlighted here is to look at the initFromInventTable method. The pattern is straightforward, but the call to inventTable.itemName() is a method, hence the parentheses. The declaration for the method is as follows:
public ItemName Display itemName([Common]).
As all tables derive from Common; we can pass in any table, which is as true as it ...
Read now
Unlock full access