4D v16.3

CREATE RELATED ONE

Home

 
4D v16.3
CREATE RELATED ONE

CREATE RELATED ONE 


 

CREATE RELATED ONE ( aField ) 
Parameter Type   Description
aField  Field in 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.



See also 

SAVE RELATED ONE

 
PROPERTIES 

Product: 4D
Theme: Relations
Number: 65

This command can be run in preemptive processes

 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)