Database: MySQL (rotates between: Access,MSSQL,MYSQL,Sim)
|
|
LabelsThe "label" relationship allows a field from one table to be treated as though it is part of another table. The field can be filtered in getRecords() and can be saved in saveRecord(). The optional "onMissing" argument of the relationship will determine how DataMgr will respond if a value is submitted for the field for which no matching record exists in the related table. By default the value will be ignored. Other options are "error" and "insert" which will throw an error and insert a record respectively. In this example, the fields in each table that are related to each other have the same field name. That need not be the case. |
View Source: