Presentation is loading. Please wait.

Presentation is loading. Please wait.

Eyad Alshareef 1 Introduction To Form Builder Part B.

Similar presentations


Presentation on theme: "Eyad Alshareef 1 Introduction To Form Builder Part B."— Presentation transcript:

1 Eyad Alshareef 1 Introduction To Form Builder Part B

2 2Eyad Alshareef Objectives Create data block from view Create data block from view Modify properties using Property Palette Modify properties using Property Palette Text item properties Text item properties Master-detail relationship Master-detail relationship Create master block first Create master block first Specify relationship automatically or manually Specify relationship automatically or manually

3 3Eyad Alshareef Creating a Form Based on a Database View View can be derived from one or more database tables View can be derived from one or more database tables Form based on a view allows you to display data from table(s) Form based on a view allows you to display data from table(s) Form could be used to insert, update, or delete data if the view is a simple view only. Form could be used to insert, update, or delete data if the view is a simple view only.

4 4Eyad Alshareef Creating a Form Based on a Database View Similar to form based on table but read-only Similar to form based on table but read-only

5 Eyad Alshareef 5 Modifying Properties

6 6Eyad Alshareef Modifying Form Properties

7 7Eyad Alshareef Guidelines For Configuring Form Windows 1. Change the window title 2. Allow user to minimize the window 3. Do not allow the user to maximize the window 4. Do not allow the user to resize the window 5. Include horizontal and vertical scrollbars if items appear beyond window boundaries 6. Make the form window fill the Forms Runtime window

8 8Eyad Alshareef Configuring Form Windows Window Title Minimize/ Maximize buttons Window size

9 9Eyad Alshareef Property Palette

10 10Eyad Alshareef Modifying Form Properties Every form object has a Property Palette that allows you to configure form properties Every form object has a Property Palette that allows you to configure form properties Property Nodes Property List

11 11Eyad Alshareef Modifying Form Properties Use Property Palette of form object to modify desired properties Use Property Palette of form object to modify desired properties To access: right click object, select Property Palette from menu To access: right click object, select Property Palette from menu Intersection mode modifies properties for multiple objects at the same time Intersection mode modifies properties for multiple objects at the same time To open in intersection mode, select multiple objects before opening Property Palette To open in intersection mode, select multiple objects before opening Property Palette

12 12Eyad Alshareef Property Palette

13 13Eyad Alshareef Intersection Property Palette Used to change property of several items to the same value Used to change property of several items to the same value Intersection/Union button appears as Intersection/Union button appears as Name appears as ***** Name appears as *****

14 14Eyad Alshareef Frame Properties Update Layout Update Layout Automatically Automatically Frame items are automatically repositioned based on their order in the Data Blocks list when you move or resize a frame, or modify the form layout using the Layout Wizard in reentrant mode Frame items are automatically repositioned based on their order in the Data Blocks list when you move or resize a frame, or modify the form layout using the Layout Wizard in reentrant mode Manually Manually Items are automatically when layout is modified in Layout Wizard in reentrant mode Items are automatically when layout is modified in Layout Wizard in reentrant mode Items are not repositioned if you move or resize the frame Items are not repositioned if you move or resize the frame Locked Locked Items are never automatically repositioned Items are never automatically repositioned

15 15Eyad Alshareef Modifying Text Item Properties Using the Property Palette Intersection mode Intersection mode Values appears as **** when objects have different values Values appears as **** when objects have different values Text item properties Text item properties Control how users enter data values Control how users enter data values How form displays data values How form displays data values Hint Hint ToolTip ToolTip

16 16Eyad Alshareef Text item Appearance Properties

17 17Eyad Alshareef Text Item Data Value Properties

18 18Eyad Alshareef Text Item Database Properties

19 Eyad Alshareef 19 Master-detail relationship

20 20Eyad Alshareef  Data block forms can display data from multiple tables that have a master-detail relationship  Master record has multiple related detail records  Examples:  One ITEM record has multiple related INVENTORY records  One CUSTOMER might have multiple CUST_ORDER records Multiple-Table Forms

21 21Eyad Alshareef Creating the Detail Data Block Master-Detail page Master-Detail page Auto-join feature of Data Block Wizard Auto-join feature of Data Block Wizard Create link manually Create link manually Click Create Relationship Click Create Relationship Explicitly select related items Explicitly select related items Join Condition field syntax: Join Condition field syntax: detail_block.join_item = master_block.join_item detail_block.join_item = master_block.join_item

22 22Eyad Alshareef Master block Detail block Master-Detail Forms

23 23Eyad Alshareef Multiple Master-Detail Blocks

24 24Eyad Alshareef Creating a Master-Detail Form Create the master block first Create the master block first Specify the relationship on the Data Block Wizard Master- Detail page of the detail block Specify the relationship on the Data Block Wizard Master- Detail page of the detail block

25 25Eyad Alshareef  A master block can have multiple detail blocks  An item can be in multiple customer orders, and have multiple shipment records  A detail block can be a master block in a second master-detail relationship  A customer can have multiple CUST_ORDER records  One CUST_ORDER record can have multiple ORDER_LINE records Complex Master-Detail Relationships

26 26Eyad Alshareef Master Detail Master Detail Complex Master-Detail Relationship Example

27 27Eyad Alshareef Creating a form based on two linked tables In order to create a form based on 2 tables: In order to create a form based on 2 tables: Create a form similar to the STUDENT form we created (name it REGISTRATION) Create a form similar to the STUDENT form we created (name it REGISTRATION) Create an additional data block using a wizard Create an additional data block using a wizard Establish master-detail relationship Establish master-detail relationship

28 28Eyad Alshareef Creating a form based on two linked tables Follow the steps suggested by the wizard Follow the steps suggested by the wizard

29 29Eyad Alshareef For the STUD_COURSE frame, select tabular layout, 4 records per page and a scrollbar. For the STUD_COURSE frame, select tabular layout, 4 records per page and a scrollbar. Creating a form based on two linked tables

30 30Eyad Alshareef Compile and run your form

31 Eyad Alshareef 31 Formatting Mask

32 32Eyad Alshareef Formatting Text Items Specify desired format mask in text item Format Mask property Specify desired format mask in text item Format Mask property If format mask makes value wider than text item Data Width property, data appears as ##### If format mask makes value wider than text item Data Width property, data appears as ##### E.g: make the format mask for the empno field in the form builder: 99”- - “ 99 and make the data length for the field 4. E.g: make the format mask for the empno field in the form builder: 99”- - “ 99 and make the data length for the field 4.

33 33Eyad Alshareef Formatting Character Text Items Place embedded characters in double quotes Place embedded characters in double quotes

34 34Eyad Alshareef Format Mask Examples Value Format Mask Result Value Format Mask Result 7945 999 ### 7945 999 ### 7945 9999$ 7945$ 7945 9999$ 7945$ 7945 99”-”99 79-45 7945 99”-”99 79-45 34.28 99.9 34.3 34.28 99.9 34.3 34.28 99.999 34.280 34.28 99.999 34.280 SYSDATE Day-MON-YY Friday-NOV-06 SYSDATE Day-MON-YY Friday-NOV-06


Download ppt "Eyad Alshareef 1 Introduction To Form Builder Part B."

Similar presentations


Ads by Google