Presentation is loading. Please wait.

Presentation is loading. Please wait.

This presentation shows how to develop a Master-Detail form. Such a form has a One-Many type of relationship. The “one” is the master and the “many” is.

Similar presentations


Presentation on theme: "This presentation shows how to develop a Master-Detail form. Such a form has a One-Many type of relationship. The “one” is the master and the “many” is."— Presentation transcript:

1 This presentation shows how to develop a Master-Detail form. Such a form has a One-Many type of relationship. The “one” is the master and the “many” is the detail. This examples deals with a Customer-Invoice form. Customer is the Master. Invoice is the Detail.

2 A new module

3

4

5

6

7 A new customer form will be created

8

9 Notice the name of the data block

10

11

12

13 The data block used

14 The prompts have been changed

15

16 Notice the name of the Frame Title Only one record will be displayed

17

18 Notice the Frame Title here

19 Notice the Frame Title again A single record is displayed

20 The data block

21 The module has now been named CUSTOMER_1_TO_M. This is done in the property palette.

22 Ensure that the CUSTOMER_1_TO_M module is highlighted

23 A new data block for INVOICE will be created

24

25

26 Choose the INVOICE table

27 Select all items

28 Un-tick the auto-join box

29 Click Create Relationship

30 The two tables have to be joined

31 INVOICE will be joined with the MY_CUSTOMERS data block

32 The two tables have to be joined on CustomerNumber. The Detail Item needs to show CustomerNumber

33 Choose CustomerNumber from the Detail Item pull- down menu.

34 Choose CustomerNumber from the Master Item pull-down menu.

35 Notice the join condition

36 Name the data block INVOICE

37

38 Now the layout of the form needs to be created

39 Choose the same canvas

40 All invoice items are needed

41 Rename the prompts

42 Choose the tabular format

43 Give the Frame Title the name Invoice Detail. Allow 5 records to be displayed. Display a scrollbar.

44

45 Notice the 1:M relationship is shown with a maximum of 5 records on the many side. The scrollbar can be used to show more records

46

47 Customer 5155 has no invoices

48 Customer 5204 has 3 invoices

49

50

51

52


Download ppt "This presentation shows how to develop a Master-Detail form. Such a form has a One-Many type of relationship. The “one” is the master and the “many” is."

Similar presentations


Ads by Google