Relate command¶
Include: Use Db\DBCommands.pkg
Current behavior¶
The standalone Relate command from DataFlex Windows global-buffer code is not part of the TechStack Command API.
Data Dictionaries use entity Add_Relation metadata and Set DDO_Server connections to maintain related DD state during normal DD operations.
Porting¶
- Remove standalone
Relatecalls from command-style procedures. - Ensure parent and child DD objects exist.
- Ensure the child DD has
Set DDO_Server to oParentDDand the entity relationship exists.
Example¶
Object oCustomerDD is a cCustomerDataDictionary
End_Object
Object oOrderHeaderDD is a cOrderHeaderDataDictionary
Set DDO_Server to oCustomerDD
End_Object
Clear oOrderHeaderDD
Move 1001 to oOrderHeaderDD.Order_Number
Find EQ oOrderHeaderDD.Order_Number