| 4D v15.4CREATE RELATED ONE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v15.4
 CREATE RELATED ONE 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CREATE RELATED ONE ( aField ) | ||||||||
| Parameter | Type | Description | ||||||
| aField | Field |   | Many field | |||||
CREATE RELATED ONE performs two actions. If a related record does not exist for aField (that is, if a match is not found for the current value of field), CREATE RELATED ONE creates a new related record.
To save a value in the appropriate field, assign values to the One field from the Many field. Call SAVE RELATED ONE to save the new record.
If a related record exists, CREATE RELATED ONE acts just like RELATE ONE and loads the related record into memory.
 Add a comment
Add a comment