4D v13.4SET FIELD RELATION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
SET FIELD RELATION
SET FIELD RELATION
The SET FIELD RELATION command sets the automatic/manual status of each relation of the database separately for the current process, regardless of its initial status as specified in the Relation properties window in the Design environment. In the first parameter, pass a table or field name:
In the one and many parameters, pass the values indicating the changing of the automatic/manual status to be applied respectively to the specified Many-to-One and One-to-Many relation(s). You can use the constants of the “Relations” theme:
Note: Changes made using this command only apply to the current process. The configuration of the relations set using the options in the Relation properties window is not modified. Note: If you passed True to the SET AUTOMATIC RELATIONS command during the same session, calls to SET FIELD RELATION are ignored, regardless of whether they are placed before or after SET AUTOMATIC RELATIONS. To "lock" the automatic mode and take calls to SET FIELD RELATION into account, pass False to SET AUTOMATIC RELATIONS. This command makes the management of relations easier in the Quick Report editor. In previous versions of 4D, it was necessary to set all relations as automatic to use them in the editor. Now, the following code allows setting only useful relations as automatic: |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D 2004 SEE ALSO
GET AUTOMATIC RELATIONS TAGS Lien*** |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||