Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 Manual for RAD Studio XE4 (C++ MacOS32) » Using ElevateDB » Setting Master-Detail Links on Tables |
Customer Table Column # Name DataType Size ---------------------------------------------- 1 CustomerID ftString 10 2 CustomerName ftString 30 3 ContactName ftString 30 4 Phone ftString 10 5 Fax ftString 10 6 EMail ftString 30
Orders Table Column # Name DataType Size ---------------------------------------------- 1 CustomerID ftString 10 2 OrderNumber ftString 10 3 OrderDate ftDate 0 4 OrderAmount ftBCD 2 Index Name Columns In Index Options ------------------------------------------------------ Primary_Key CustomerID;OrderNumber ixPrimary
{ // Set to the natural order, which in this case // is the primary key OrdersTable->IndexName=""; // Assign the MasterSource property OrdersTable->MasterSource=CustomerSource; // Set the MasterColumns property to point to the // CustomerID column from the Customer table OrdersTable->MasterColumns="CustomerID"; }
{ // Set to the CustomerID column OrdersTable->IndexFieldNames="CustomerID"; // Assign the MasterSource property OrdersTable->MasterSource=CustomerSource; // Set the MasterColumns property to point to the // CustomerID column from the Customer table OrdersTable->MasterColumns="CustomerID"; }
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |