This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
SET AUTOMATIC RELATIONS
|
SET AUTOMATIC RELATIONS ( one {; many} ) | ||||||||
Parameter | Type | Description | ||||||
one | Boolean |
![]() |
Status of all Many-to-One relations | |||||
many | Boolean |
![]() |
Status of all One-to-Many relations | |||||
SET AUTOMATIC RELATIONS temporarily changes all the manual relations into automatic relations for the entire database in the current process. The relations stay automatic unless a subsequent call to SET AUTOMATIC RELATIONS is made.
This command changes relations set as manual in the Design environment to automatic, just before executing operations that require them to be automatic (such as relational queries and sorts). After the operation is finished, relations can be changed back to manual by calling SET AUTOMATIC RELATIONS again. Any relations set as automatic in the Design environment are not affected by this command.
Notes:
The following example makes all manual Many-to-One relations automatic and reverts any previously changed One-to-Many relations:
SET AUTOMATIC RELATIONS(True;False)
About Relations
GET AUTOMATIC RELATIONS
GET RELATION PROPERTIES
SELECTION RANGE TO ARRAY
SELECTION TO ARRAY
SET FIELD RELATION
Product: 4D
Theme: Relations
Number:
310
Modified: 4D 2004
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)