This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
GET RELATION PROPERTIES
|
GET RELATION PROPERTIES ( fieldPtr|tableNum {; fieldNum}; oneTable ; oneField {; choiceField {; autoOne {; autoMany}}} ) | ||||||||
Parameter | Type | Description | ||||||
fieldPtr|tableNum | Pointer, Longint |
![]() |
Field pointer or table number | |||||
fieldNum | Longint |
![]() |
Field number if the table number is passed as first parameter | |||||
oneTable | Longint |
![]() |
One table number or 0 if no relation is defined from the field | |||||
oneField | Longint |
![]() |
One field number or 0 if no relation is defined from the field | |||||
choiceField | Longint |
![]() |
Choice field number or 0 if no choice field | |||||
autoOne | Boolean |
![]() |
True = Auto relate one, False = Manual relate one | |||||
autoMany | Boolean |
![]() |
True = Auto one to many, False = Manual one to many | |||||
The GET RELATION PROPERTIES command returns the properties of the relation (if any) which starts from the source field defined by tableNum and fieldNum or by fieldPtr.
You can pass:
Once the command has been executed:
Note: The autoOne and autoMany parameters will also return True if no relation starts from the source field (in this case they return non-significant values). The value of both the oneTable and oneField parameters allows you to make sure that a relation exists.
GET FIELD ENTRY PROPERTIES
GET FIELD PROPERTIES
GET TABLE PROPERTIES
SET AUTOMATIC RELATIONS
SET FIELD RELATION
Product: 4D
Theme: Structure Access
Number:
686
Created: 4D v6.7
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)