This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
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

 
PAGE CONTENTS 
 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)