Tuto WINDEV 25
Part 3: My first database 111 5. Go to the next step. The wizard automatically proposes the key used by the link (CustomerID). 6. Display the next step of the wizard. The wizard offers to create the "CustomerID" key in the Orders data file to store the customer corresponding to the order. 7. Accept this option by going to the next step. 8. This step defines the integrity rules that will be automatically applied. In our case, you have the ability to choose the requested behavior when deleting a customer as well as the requested behavior when modifying the customer identifier. 9. Validate the integrity rules by going to the next step of the wizard. 10. Click "Finish". The link is automatically created in the data model editor. ▶ Likewise, create a link between the PaymentMode and Orders data files. These two data files are linked as follows: • An order must have a payment mode. • A payment mode can be used in several orders. In the wizard: • The cardinalities are as follows: PaymentMode (0,n), Orders (1,1). • The link key corresponds to the "Code" item.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==